Spaces:
Paused
Paused
Commit
•
83e168c
1
Parent(s):
2b845f2
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,9 @@ def add_message(history, message):
|
|
46 |
return history, gr.MultimodalTextbox(value=None, interactive=False)
|
47 |
|
48 |
def bot(history):
|
49 |
-
|
|
|
|
|
50 |
history[-1][1] += character
|
51 |
time.sleep(0.01)
|
52 |
yield history
|
|
|
46 |
return history, gr.MultimodalTextbox(value=None, interactive=False)
|
47 |
|
48 |
def bot(history):
|
49 |
+
response = history[-1][1]
|
50 |
+
history[-1][1] = ""
|
51 |
+
for character in response:
|
52 |
history[-1][1] += character
|
53 |
time.sleep(0.01)
|
54 |
yield history
|