ONEROCKS commited on
Commit
ced05fd
·
verified ·
1 Parent(s): 038bb1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -736,10 +736,8 @@ def create_chatbot():
736
  def load_selected_history(file_name):
737
  history = load_chat_session(file_name)
738
  return format_history_for_gradio(history), history
739
-
740
- load_button.click(fn=load_selected_history, inputs=history_dropdown, outputs=[history_chatbot, state])
741
- resume_button.click(fn=lambda history: (format_history_for_gradio(history), history),
742
- inputs=[state], outputs=[chatbot, state])
743
 
744
  return demo
745
 
 
736
  def load_selected_history(file_name):
737
  history = load_chat_session(file_name)
738
  return format_history_for_gradio(history), history
739
+ load_button.click(fn=load_selected_history, inputs=history_dropdown, outputs=[history_chatbot, state])
740
+ resume_button.click(fn=lambda history: (format_history_for_gradio(history), history),inputs=[state], outputs=[chatbot, state])
 
 
741
 
742
  return demo
743