Update app.py
Browse files
app.py
CHANGED
@@ -53,8 +53,10 @@ def get_conversation_history():
|
|
53 |
|
54 |
def clear_conversation():
|
55 |
"""Clears the conversation history."""
|
|
|
|
|
56 |
conversation_history.clear()
|
57 |
-
return "
|
58 |
|
59 |
# Build the Gradio interface.
|
60 |
with gr.Blocks() as interface:
|
|
|
53 |
|
54 |
def clear_conversation():
|
55 |
"""Clears the conversation history."""
|
56 |
+
if not conversation_history:
|
57 |
+
return "No conversations started."
|
58 |
conversation_history.clear()
|
59 |
+
return ""
|
60 |
|
61 |
# Build the Gradio interface.
|
62 |
with gr.Blocks() as interface:
|