Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|