giannantonio15 commited on
Commit
e14a22a
1 Parent(s): b3740a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -497,12 +497,12 @@ def main():
497
  gr.Radio(["compact","tree_summarize"], label="Response mode", info="Influenzerà il modo in cui il chatbot risponde", interactive=True,container=False, value="compact",elem_id="responseMode").select(fn=select_response_mode, outputs=output),
498
  divDocumenti = gr.HTML("<div id='divDocumenti'></div>")
499
  msg = gr.Textbox(elem_id="textBox", container=False)
 
 
 
500
  clear = gr.ClearButton([msg, chatbot], elem_id="btnClear")
501
  clear.click(fn=reset, outputs=output)
502
 
503
- msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
504
- bot, chatbot, [chatbot, divDocumenti]
505
- )
506
 
507
  demo.queue()
508
  demo.launch(debug=True, share=True)
 
497
  gr.Radio(["compact","tree_summarize"], label="Response mode", info="Influenzerà il modo in cui il chatbot risponde", interactive=True,container=False, value="compact",elem_id="responseMode").select(fn=select_response_mode, outputs=output),
498
  divDocumenti = gr.HTML("<div id='divDocumenti'></div>")
499
  msg = gr.Textbox(elem_id="textBox", container=False)
500
+ msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
501
+ bot, chatbot, [chatbot, divDocumenti]
502
+ )
503
  clear = gr.ClearButton([msg, chatbot], elem_id="btnClear")
504
  clear.click(fn=reset, outputs=output)
505
 
 
 
 
506
 
507
  demo.queue()
508
  demo.launch(debug=True, share=True)