Update app.py
Browse files
app.py
CHANGED
|
@@ -44,9 +44,9 @@ def add_text(history, text):
|
|
| 44 |
|
| 45 |
def bot(history):
|
| 46 |
response = infer(history[-1][0], history)
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
history[-1][1] += character
|
| 51 |
time.sleep(0.05)
|
| 52 |
yield history
|
|
|
|
| 44 |
|
| 45 |
def bot(history):
|
| 46 |
response = infer(history[-1][0], history)
|
| 47 |
+
history[-1][1] = ""
|
| 48 |
+
|
| 49 |
+
for character in response:
|
| 50 |
history[-1][1] += character
|
| 51 |
time.sleep(0.05)
|
| 52 |
yield history
|