Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,8 +55,9 @@ def clear_conversation():
|
|
55 |
"""Clears the conversation history."""
|
56 |
if not conversation_history:
|
57 |
return "No conversations started."
|
58 |
-
|
59 |
-
|
|
|
60 |
|
61 |
# Build the Gradio interface.
|
62 |
with gr.Blocks() as interface:
|
|
|
55 |
"""Clears the conversation history."""
|
56 |
if not conversation_history:
|
57 |
return "No conversations started."
|
58 |
+
else:
|
59 |
+
conversation_history.clear()
|
60 |
+
return "Conversations deleted!"
|
61 |
|
62 |
# Build the Gradio interface.
|
63 |
with gr.Blocks() as interface:
|