This commit is contained in:
Nick Walton
2019-09-27 13:06:06 -06:00
parent 405766a386
commit bb1739781f
+5 -2
View File
@@ -7,7 +7,7 @@ from generator.web.web_generator import *
from generator.ctrl.ctrl_generator import *
import tensorflow as tf
import textwrap
import sys
CRED_FILE = "./AI-Adventure-2bb65e3a4e2f.json"
# Set the key
@@ -23,7 +23,10 @@ def console_print(str, pycharm=False):
def play_unconstrained():
generator = CTRLGenerator()
#generator = WebGenerator(CRED_FILE)
prompt = get_story_start("hospital")
if len(sys.argv) is 1:
prompt = get_story_start("hospital")
else:
prompt = sys.argv[1]
story_manager = UnconstrainedStoryManager(generator)
story_manager.start_new_story(prompt)