Spaces:
Build error
Build error
Update app.py
Browse files
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],
|
| 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)
|