Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
3dc4ba1
1
Parent(s):
b6b6848
test
Browse files
app.py
CHANGED
@@ -63,9 +63,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
63 |
|
64 |
def update_output(input_message):
|
65 |
global chat_history
|
66 |
-
|
67 |
-
|
68 |
-
chat_history.extend([user_message, server_response])
|
69 |
return chat_history
|
70 |
|
71 |
submit_button.click(fn=update_output, inputs=[input_text], outputs=[output_chat])
|
|
|
63 |
|
64 |
def update_output(input_message):
|
65 |
global chat_history
|
66 |
+
server_response = chat_with_ochat(input_message) # Server's response
|
67 |
+
chat_history.append((input_message, server_response))
|
|
|
68 |
return chat_history
|
69 |
|
70 |
submit_button.click(fn=update_output, inputs=[input_text], outputs=[output_chat])
|