MZhao commited on
Commit
682e231
·
unverified ·
1 Parent(s): 5a7e86e

fix replicate codes

Browse files
Files changed (1) hide show
  1. ChuanhuChatbot.py +0 -2
ChuanhuChatbot.py CHANGED
@@ -179,8 +179,6 @@ with gr.Blocks() as demo:
179
  delLastBtn.click(delete_last_conversation, [chatbot, context], [chatbot, context], show_progress=True)
180
  reduceTokenBtn.click(reduce_token, [chatbot, systemPrompt, context, myKey], [chatbot, context], show_progress=True)
181
  keyTxt.submit(set_apikey, [keyTxt, myKey], [keyTxt, myKey], show_progress=True)
182
- reduceTokenBtn.click(reduce_token, [chatbot, systemPrompt, context, myKey], [chatbot, context], show_progress=True)
183
- keyTxt.submit(set_apikey, [keyTxt, myKey], [keyTxt, myKey], show_progress=True)
184
  uploadBtn.upload(load_chat_history, uploadBtn, [chatbot, systemPrompt, context, systemPromptDisplay], show_progress=True)
185
  saveBtn.click(save_chat_history, [saveFileName, systemPrompt, context], None, show_progress=True)
186
 
 
179
  delLastBtn.click(delete_last_conversation, [chatbot, context], [chatbot, context], show_progress=True)
180
  reduceTokenBtn.click(reduce_token, [chatbot, systemPrompt, context, myKey], [chatbot, context], show_progress=True)
181
  keyTxt.submit(set_apikey, [keyTxt, myKey], [keyTxt, myKey], show_progress=True)
 
 
182
  uploadBtn.upload(load_chat_history, uploadBtn, [chatbot, systemPrompt, context, systemPromptDisplay], show_progress=True)
183
  saveBtn.click(save_chat_history, [saveFileName, systemPrompt, context], None, show_progress=True)
184