diff --git a/play.py b/play.py index 211efcd..b42d5af 100644 --- a/play.py +++ b/play.py @@ -1,7 +1,6 @@ from story.story_manager import * from generator.gpt2.gpt2_generator import * from story.utils import * -from termios import tcflush, TCIFLUSH import time, sys, os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" @@ -93,7 +92,7 @@ def play_aidungeon_2(): print("\n") console_print(str(story_manager.story)) while True: - tcflush(sys.stdin, TCIFLUSH) + sys.stdin.flush() action = input("> ") if action == "restart": rating = input("Please rate the story quality from 1-10: ") diff --git a/play_dm.py b/play_dm.py index abcacd1..59758e2 100644 --- a/play_dm.py +++ b/play_dm.py @@ -2,7 +2,6 @@ from story.story_manager import * from generator.human_dm import * from generator.gpt2.gpt2_generator import * from story.utils import * -from termios import tcflush, TCIFLUSH from play import * import time, sys, os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"