Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def talk(prompt, history):
|
|
124 |
print(historylog)
|
125 |
print(stream['choices'][0]['message']['content'])
|
126 |
response = stream['choices'][0]['message']['content']
|
127 |
-
|
128 |
time.sleep(0.3)
|
129 |
yield response[: i+1]
|
130 |
|
|
|
124 |
print(historylog)
|
125 |
print(stream['choices'][0]['message']['content'])
|
126 |
response = stream['choices'][0]['message']['content']
|
127 |
+
for i in range(len(response)):
|
128 |
time.sleep(0.3)
|
129 |
yield response[: i+1]
|
130 |
|