aucnm commited on
Commit
123bc77
·
1 Parent(s): cce4596

Update ChuanhuChatbot.py

Browse files
Files changed (1) hide show
  1. ChuanhuChatbot.py +1 -1
ChuanhuChatbot.py CHANGED
@@ -422,7 +422,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
422
  )
423
  historyRefreshBtn.click(get_history_names, [gr.State(False), user_name], [historyFileSelectDropdown])
424
  historyFileSelectDropdown.change(**load_history_from_file_args)
425
- downloadFile.change(**load_history_from_file_args)
426
 
427
  # Advanced
428
  max_context_length_slider.change(set_token_upper_limit, [current_model, max_context_length_slider], None)
 
422
  )
423
  historyRefreshBtn.click(get_history_names, [gr.State(False), user_name], [historyFileSelectDropdown])
424
  historyFileSelectDropdown.change(**load_history_from_file_args)
425
+ downloadFile.change(upload_chat_history, [current_model, downloadFile, user_name], [saveFileName, systemPromptTxt, chatbot])
426
 
427
  # Advanced
428
  max_context_length_slider.change(set_token_upper_limit, [current_model, max_context_length_slider], None)