Spaces:
Runtime error
Runtime error
Logan Zoellner
commited on
Commit
•
7a59307
1
Parent(s):
b18e03b
shouldn't have deleted that variable
Browse files
app.py
CHANGED
@@ -16,6 +16,7 @@ computer: you are an adventurer exploring the darkest dungeon
|
|
16 |
player: enter dungeon
|
17 |
"""
|
18 |
|
|
|
19 |
|
20 |
def fallbackResponse():
|
21 |
return "You are attacked by a {monster}!".format(monster=random.choice(monsters))
|
@@ -84,7 +85,7 @@ with demo:
|
|
84 |
)
|
85 |
|
86 |
with gr.Row():
|
87 |
-
output_story = gr.Textbox(value=
|
88 |
|
89 |
with gr.Row():
|
90 |
input_command = gr.Textbox(label="input",placeholder="look around")
|
|
|
16 |
player: enter dungeon
|
17 |
"""
|
18 |
|
19 |
+
default_story="computer: you are standing in front of a dark dungeon.\n"
|
20 |
|
21 |
def fallbackResponse():
|
22 |
return "You are attacked by a {monster}!".format(monster=random.choice(monsters))
|
|
|
85 |
)
|
86 |
|
87 |
with gr.Row():
|
88 |
+
output_story = gr.Textbox(value=default_story,label="story",lines=7)
|
89 |
|
90 |
with gr.Row():
|
91 |
input_command = gr.Textbox(label="input",placeholder="look around")
|