Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,8 @@ def random_response(message, history):
|
|
16 |
)
|
17 |
|
18 |
# Return the response and updated history
|
19 |
-
|
|
|
20 |
|
21 |
# Set up Gradio chat interface
|
22 |
demo = gr.ChatInterface(
|
|
|
16 |
)
|
17 |
|
18 |
# Return the response and updated history
|
19 |
+
history.append((message, result)) # Append the current message and response to history
|
20 |
+
return result, history # Return the response and history as separate outputs
|
21 |
|
22 |
# Set up Gradio chat interface
|
23 |
demo = gr.ChatInterface(
|