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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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 "No conversations started."
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: