Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def generate_text(input_text, history):
|
|
26 |
for out in output:
|
27 |
stream = copy.deepcopy(out)
|
28 |
print(stream["choices"][0]["text"])
|
29 |
-
input_text_with_history
|
30 |
time.sleep(0.05)
|
31 |
yield input_text_with_history
|
32 |
|
|
|
26 |
for out in output:
|
27 |
stream = copy.deepcopy(out)
|
28 |
print(stream["choices"][0]["text"])
|
29 |
+
input_text_with_history += stream["choices"][0]["text"]
|
30 |
time.sleep(0.05)
|
31 |
yield input_text_with_history
|
32 |
|