Skip to content

Commit

Permalink
windows compat
Browse files Browse the repository at this point in the history
removes termios
  • Loading branch information
Akababa committed Dec 9, 2019
1 parent d7b7755 commit e85ad10
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions play.py
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -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: ")
Expand Down
1 change: 0 additions & 1 deletion play_dm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
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"
Expand Down

0 comments on commit e85ad10

Please sign in to comment.