Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -272,13 +272,13 @@ with gr.Blocks(title="Audit Q&A", css="style.css", theme=theme,elem_id = "main-c
|
|
272 |
|
273 |
(textbox
|
274 |
.submit(start_chat, [textbox,chatbot], [textbox,tabs,chatbot],queue = False,api_name = "start_chat_textbox")
|
275 |
-
.then(chat, [textbox,chatbot,
|
276 |
.then(finish_chat, None, [textbox],api_name = "finish_chat_textbox")
|
277 |
)
|
278 |
|
279 |
(examples_hidden
|
280 |
.change(start_chat, [examples_hidden,chatbot], [textbox,tabs,chatbot],queue = False,api_name = "start_chat_examples")
|
281 |
-
.then(chat, [examples_hidden,chatbot,
|
282 |
.then(finish_chat, None, [textbox],api_name = "finish_chat_examples")
|
283 |
)
|
284 |
|
|
|
272 |
|
273 |
(textbox
|
274 |
.submit(start_chat, [textbox,chatbot], [textbox,tabs,chatbot],queue = False,api_name = "start_chat_textbox")
|
275 |
+
.then(chat, [textbox,chatbot, dropdown_sources,dropdown_reports], [chatbot,sources_textbox,output_query],concurrency_limit = 8,api_name = "chat_textbox")
|
276 |
.then(finish_chat, None, [textbox],api_name = "finish_chat_textbox")
|
277 |
)
|
278 |
|
279 |
(examples_hidden
|
280 |
.change(start_chat, [examples_hidden,chatbot], [textbox,tabs,chatbot],queue = False,api_name = "start_chat_examples")
|
281 |
+
.then(chat, [examples_hidden,chatbot, dropdown_sources,dropdown_reports], [chatbot,sources_textbox,output_query],concurrency_limit = 8,api_name = "chat_examples")
|
282 |
.then(finish_chat, None, [textbox],api_name = "finish_chat_examples")
|
283 |
)
|
284 |
|