mohammad2928git commited on
Commit
877e57c
·
verified ·
1 Parent(s): 598ba5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ def greet(inp, messages):
6
  return "Hello " + inp + "!"
7
 
8
  def clear_memory(messages):
9
- messages = []
10
  return "Memory cleaned."
11
 
12
  with gr.Blocks() as demo:
 
6
  return "Hello " + inp + "!"
7
 
8
  def clear_memory(messages):
9
+ messages.clear()
10
  return "Memory cleaned."
11
 
12
  with gr.Blocks() as demo: