Update app.py
Browse files
app.py
CHANGED
|
@@ -457,14 +457,14 @@ with gr.Blocks(title="Climate Q&A", css="style.css", theme=theme,elem_id = "main
|
|
| 457 |
|
| 458 |
(textbox
|
| 459 |
.submit(start_chat, [textbox,chatbot], [textbox,tabs,chatbot],queue = False,api_name = "start_chat_textbox")
|
| 460 |
-
.
|
| 461 |
-
.
|
| 462 |
)
|
| 463 |
|
| 464 |
(examples_hidden
|
| 465 |
.change(start_chat, [examples_hidden,chatbot], [textbox,tabs,chatbot],queue = False,api_name = "start_chat_examples")
|
| 466 |
-
.
|
| 467 |
-
.
|
| 468 |
)
|
| 469 |
|
| 470 |
|
|
|
|
| 457 |
|
| 458 |
(textbox
|
| 459 |
.submit(start_chat, [textbox,chatbot], [textbox,tabs,chatbot],queue = False,api_name = "start_chat_textbox")
|
| 460 |
+
.then(chat, [textbox,chatbot,dropdown_audience, dropdown_sources,dropdown_reports], [chatbot,sources_textbox,output_query,output_language,gallery],concurrency_limit = 8,api_name = "chat_textbox")
|
| 461 |
+
.then(finish_chat, None, [textbox],api_name = "finish_chat_textbox")
|
| 462 |
)
|
| 463 |
|
| 464 |
(examples_hidden
|
| 465 |
.change(start_chat, [examples_hidden,chatbot], [textbox,tabs,chatbot],queue = False,api_name = "start_chat_examples")
|
| 466 |
+
.then(chat, [examples_hidden,chatbot,dropdown_audience, dropdown_sources,dropdown_reports], [chatbot,sources_textbox,output_query,output_language,gallery],concurrency_limit = 8,api_name = "chat_examples")
|
| 467 |
+
.then(finish_chat, None, [textbox],api_name = "finish_chat_examples")
|
| 468 |
)
|
| 469 |
|
| 470 |
|