TheoLvs commited on
Commit
cf1bde3
1 Parent(s): d8b517c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- .success(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
- .success(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
- .success(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
- .success(finish_chat, None, [textbox],api_name = "finish_chat_examples")
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