TejAndrewsACC commited on
Commit
95a8c72
·
verified ·
1 Parent(s): 877c07e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -36,6 +36,7 @@ def chat_function(message, history):
36
  def reset_context():
37
  global context
38
  context = "" # Reset the context
 
39
 
40
  with gr.Blocks(theme=gr.themes.Glass()) as demo:
41
  chatbot = gr.Chatbot()
 
36
  def reset_context():
37
  global context
38
  context = "" # Reset the context
39
+ return [], "" # Clear the chatbot (empty list) and textbox (empty string)
40
 
41
  with gr.Blocks(theme=gr.themes.Glass()) as demo:
42
  chatbot = gr.Chatbot()