Spaces:
Runtime error
Runtime error
mkw18
commited on
Commit
·
fe1355d
1
Parent(s):
200f01e
fix idx
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ with gr.Blocks() as demo:
|
|
133 |
messages = gr.State(data['messages'])
|
134 |
|
135 |
# submitBtn.click(showInput, [user_input, chatbot], [chatbot])
|
136 |
-
submitBtn.click(predict, [user_input, chatbot, messages], [chatbot, messages],
|
137 |
show_progress=True)
|
138 |
submitBtn.click(reset_user_input, [], [user_input])
|
139 |
|
|
|
133 |
messages = gr.State(data['messages'])
|
134 |
|
135 |
# submitBtn.click(showInput, [user_input, chatbot], [chatbot])
|
136 |
+
submitBtn.click(predict, [user_input, chatbot, messages, idx], [chatbot, messages],
|
137 |
show_progress=True)
|
138 |
submitBtn.click(reset_user_input, [], [user_input])
|
139 |
|