Logan Zoellner commited on
Commit
1656b5a
·
1 Parent(s): a15843c
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -21,6 +21,7 @@ def fallbackResponse():
21
 
22
  def continue_story(prompt):
23
  global story
 
24
  p=basePrompt+story+"player:"+prompt
25
 
26
  print(f"*****Inside desc_generate - Prompt is :{p}")
@@ -77,13 +78,17 @@ with demo:
77
  )
78
 
79
  with gr.Row():
80
- b0 = gr.Button("Submit")
81
-
82
  with gr.Row():
83
  input_command = gr.Textbox(label="input",placeholder="look around")
84
-
85
  with gr.Row():
86
- story = gr.Textbox(label="description",lines=7)
 
 
 
 
87
 
88
  b0.click(continue_story,inputs=[input_command],outputs=[story])
89
  #examples=examples
 
21
 
22
  def continue_story(prompt):
23
  global story
24
+ print("about to die",basePrompt,story,prompt)
25
  p=basePrompt+story+"player:"+prompt
26
 
27
  print(f"*****Inside desc_generate - Prompt is :{p}")
 
78
  )
79
 
80
  with gr.Row():
81
+ story = gr.Textbox(value=story,label="story",lines=7)
82
+
83
  with gr.Row():
84
  input_command = gr.Textbox(label="input",placeholder="look around")
85
+
86
  with gr.Row():
87
+ b0 = gr.Button("Submit")
88
+
89
+
90
+
91
+
92
 
93
  b0.click(continue_story,inputs=[input_command],outputs=[story])
94
  #examples=examples