Spaces:
Running
on
Zero
Running
on
Zero
macadeliccc
commited on
Commit
·
8d68072
1
Parent(s):
a505b42
session state
Browse files
app.py
CHANGED
@@ -61,6 +61,9 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
61 |
chat_history.append((input_message, server_response))
|
62 |
return chat_history
|
63 |
|
64 |
-
submit_button.click(
|
65 |
-
|
|
|
|
|
|
|
66 |
app.launch()
|
|
|
61 |
chat_history.append((input_message, server_response))
|
62 |
return chat_history
|
63 |
|
64 |
+
submit_button.click(
|
65 |
+
fn=update_output,
|
66 |
+
inputs=[input_text, chat_history], # Ensure both inputs are passed
|
67 |
+
outputs=[output_chat]
|
68 |
+
)
|
69 |
app.launch()
|