Spaces:
Runtime error
Runtime error
mkw18
commited on
Commit
·
40936b7
1
Parent(s):
227cc8d
fix bug
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ def reset_state():
|
|
109 |
messages = data['messages']
|
110 |
answer = data['answer']
|
111 |
idx = data['idx']
|
112 |
-
return chatbot, messages, gr.update(value=""), gr.update(value="Show Answer"), answer, idx, gr.update(value=
|
113 |
|
114 |
|
115 |
def show_hide_answer(answer, show_ans):
|
|
|
109 |
messages = data['messages']
|
110 |
answer = data['answer']
|
111 |
idx = data['idx']
|
112 |
+
return chatbot, messages, gr.update(value=""), gr.update(value="Show Answer"), answer, idx, gr.update(value=data['story'].strip()), False
|
113 |
|
114 |
|
115 |
def show_hide_answer(answer, show_ans):
|