windows compat

removes termios
This commit is contained in:
Michael Pang
2019-12-09 09:47:16 -05:00
parent d7b77553d2
commit e85ad10953
2 changed files with 1 additions and 3 deletions
+1 -2
View File
@@ -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: ")
-1
View File
@@ -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"