tagny commited on
Commit
5917458
·
verified ·
1 Parent(s): 8fd900a

try to reinitialize the conversition for each new session

Browse files
Files changed (1) hide show
  1. Gradio_UI.py +3 -3
Gradio_UI.py CHANGED
@@ -307,10 +307,10 @@ class GradioUI:
307
  [text_input, file_uploads_log],
308
  [stored_messages, text_input],
309
  ).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])
 
 
310
 
311
- demo.launch(debug=True, share=True, **kwargs)
312
- # Initialize instance when page loads
313
- demo.load(random.random, inputs=None, outputs=None)
314
 
315
 
316
  __all__ = ["stream_to_gradio", "GradioUI"]
 
307
  [text_input, file_uploads_log],
308
  [stored_messages, text_input],
309
  ).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])
310
+ # Initialize instance when page loads
311
+ demo.load(random.random, inputs=None, outputs=None)
312
 
313
+ demo.launch(debug=True, share=True, **kwargs)
 
 
314
 
315
 
316
  __all__ = ["stream_to_gradio", "GradioUI"]