ECUiVADE commited on
Commit
cda28b1
1 Parent(s): b5f2fa7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -239,7 +239,7 @@ class ChatbotAPP:
239
  status_label = gr.Markdown()
240
  start_chat_button = gr.Button("Start Chat with Chatlog")
241
  #submit_info.click(submit_user_info, inputs=[name, occupation, yearsofexp, ethnicity, gender, age], outputs=[status_textbox])
242
- start_chat_button.click(start_chat_button_fn, inputs=[agree_status], outputs=[status_label])
243
  #status_textbox = gr.Textbox(interactive = False)
244
 
245
  with gr.Tab("Chat Bot"):
@@ -247,13 +247,13 @@ class ChatbotAPP:
247
  msg = gr.Textbox(label="Type your message")
248
  send = gr.Button("Send")
249
  clear = gr.Button("Clear Chat")
250
- send.click(generate, inputs=[msg], outputs=chatbot)
251
  clear.click(lambda: chatbot.clear(), inputs=[], outputs=chatbot)
252
 
253
  with gr.Tab("Reset"):
254
  reset_button = gr.Button("Reset ChatBot Instance")
255
  reset_output = gr.Textbox(label="Reset Output", interactive=False)
256
- reset_button.click(reset_all, inputs=[], outputs=[reset_output,unique_id_display])
257
  return app
258
 
259
  llm = load_model()
 
239
  status_label = gr.Markdown()
240
  start_chat_button = gr.Button("Start Chat with Chatlog")
241
  #submit_info.click(submit_user_info, inputs=[name, occupation, yearsofexp, ethnicity, gender, age], outputs=[status_textbox])
242
+ start_chat_button.click(self.start_chat_button_fn, inputs=[agree_status], outputs=[status_label])
243
  #status_textbox = gr.Textbox(interactive = False)
244
 
245
  with gr.Tab("Chat Bot"):
 
247
  msg = gr.Textbox(label="Type your message")
248
  send = gr.Button("Send")
249
  clear = gr.Button("Clear Chat")
250
+ send.click(self.generate, inputs=[msg], outputs=chatbot)
251
  clear.click(lambda: chatbot.clear(), inputs=[], outputs=chatbot)
252
 
253
  with gr.Tab("Reset"):
254
  reset_button = gr.Button("Reset ChatBot Instance")
255
  reset_output = gr.Textbox(label="Reset Output", interactive=False)
256
+ reset_button.click(self.reset_all, inputs=[], outputs=[reset_output,unique_id_display])
257
  return app
258
 
259
  llm = load_model()