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