Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
|
@@ -153,13 +153,13 @@ with gr.Blocks(title="Audit Q&A", css="style.css", theme=theme,elem_id = "main-c
|
|
| 153 |
|
| 154 |
(textbox
|
| 155 |
.submit(start_chat, [textbox,chatbot], [textbox,tabs,chatbot],queue = False,api_name = "start_chat_textbox")
|
| 156 |
-
.then(chat, [textbox,chatbot,dropdown_audience, dropdown_sources,dropdown_reports], [chatbot,sources_textbox,output_query,output_language
|
| 157 |
.then(finish_chat, None, [textbox],api_name = "finish_chat_textbox")
|
| 158 |
)
|
| 159 |
|
| 160 |
(examples_hidden
|
| 161 |
.change(start_chat, [examples_hidden,chatbot], [textbox,tabs,chatbot],queue = False,api_name = "start_chat_examples")
|
| 162 |
-
.then(chat, [examples_hidden,chatbot,dropdown_audience, dropdown_sources,dropdown_reports], [chatbot,sources_textbox,output_query,output_language
|
| 163 |
.then(finish_chat, None, [textbox],api_name = "finish_chat_examples")
|
| 164 |
)
|
| 165 |
|
|
|
|
| 153 |
|
| 154 |
(textbox
|
| 155 |
.submit(start_chat, [textbox,chatbot], [textbox,tabs,chatbot],queue = False,api_name = "start_chat_textbox")
|
| 156 |
+
.then(chat, [textbox,chatbot,dropdown_audience, dropdown_sources,dropdown_reports], [chatbot,sources_textbox,output_query,output_language],concurrency_limit = 8,api_name = "chat_textbox")
|
| 157 |
.then(finish_chat, None, [textbox],api_name = "finish_chat_textbox")
|
| 158 |
)
|
| 159 |
|
| 160 |
(examples_hidden
|
| 161 |
.change(start_chat, [examples_hidden,chatbot], [textbox,tabs,chatbot],queue = False,api_name = "start_chat_examples")
|
| 162 |
+
.then(chat, [examples_hidden,chatbot,dropdown_audience, dropdown_sources,dropdown_reports], [chatbot,sources_textbox,output_query,output_language],concurrency_limit = 8,api_name = "chat_examples")
|
| 163 |
.then(finish_chat, None, [textbox],api_name = "finish_chat_examples")
|
| 164 |
)
|
| 165 |
|