acecalisto3 commited on
Commit
2194b6f
·
verified ·
1 Parent(s): 854cf98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -553,7 +553,7 @@ def main():
553
  with gr.Tab("Chat App"):
554
  history = gr.State([])
555
  for example in examples:
556
- gr.Button(value=example[0]).click(lambda: chat_app_logic(example[0], history, purpose), outputs=chatbot)
557
 
558
  # Connect components to the chat app logic
559
  submit_button.click(chat_app_logic, inputs=[message, history], outputs=chatbot)
 
553
  with gr.Tab("Chat App"):
554
  history = gr.State([])
555
  for example in examples:
556
+ gr.Button(value=example[0]).click(lambda: chat_app_logic, inputs=[(example[0], message, purpose)], outputs=chatbot)
557
 
558
  # Connect components to the chat app logic
559
  submit_button.click(chat_app_logic, inputs=[message, history], outputs=chatbot)