Spaces:
Runtime error
Runtime error
Commit
·
ca763ec
1
Parent(s):
996acc0
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
34 |
|
35 |
|
36 |
def user(user_message, history):
|
37 |
-
return gr.update(value=""
|
|
|
38 |
def bot(history):
|
39 |
# Remove the second element of the last element of the list
|
40 |
# del history[-1][1]
|
|
|
34 |
|
35 |
|
36 |
def user(user_message, history):
|
37 |
+
return gr.update(value=""), history + [[user_message,None]]
|
38 |
+
# , interactive=False
|
39 |
def bot(history):
|
40 |
# Remove the second element of the last element of the list
|
41 |
# del history[-1][1]
|