Samurai719214 commited on
Commit
e7654fc
·
verified ·
1 Parent(s): 13f2004

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- conversation_history.clear()
59
- return ""
 
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: