Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -295,6 +295,7 @@ with gr.Blocks(
|
|
| 295 |
state,
|
| 296 |
],
|
| 297 |
[chatbot, state],
|
|
|
|
| 298 |
)
|
| 299 |
b1.click(
|
| 300 |
predict,
|
|
@@ -311,6 +312,7 @@ with gr.Blocks(
|
|
| 311 |
state,
|
| 312 |
],
|
| 313 |
[chatbot, state],
|
|
|
|
| 314 |
)
|
| 315 |
b1.click(reset_textbox, [], [inputs] ,api_name = "button")
|
| 316 |
inputs.submit(reset_textbox, [], [inputs] , api_name = "text")
|
|
|
|
| 295 |
state,
|
| 296 |
],
|
| 297 |
[chatbot, state],
|
| 298 |
+
api_name = "chat_text",
|
| 299 |
)
|
| 300 |
b1.click(
|
| 301 |
predict,
|
|
|
|
| 312 |
state,
|
| 313 |
],
|
| 314 |
[chatbot, state],
|
| 315 |
+
api_name = "chat_button",
|
| 316 |
)
|
| 317 |
b1.click(reset_textbox, [], [inputs] ,api_name = "button")
|
| 318 |
inputs.submit(reset_textbox, [], [inputs] , api_name = "text")
|