Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,12 +25,8 @@ def generate_text(input_text, history):
|
|
| 25 |
for out in output:
|
| 26 |
stream = copy.deepcopy(out)
|
| 27 |
print(stream["choices"][0]["text"])
|
| 28 |
-
yield str(stream["choices"][0]["text"])
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
print("out", out)
|
| 32 |
-
print("output", output["text"])
|
| 33 |
-
print("response", response)
|
| 34 |
history =["init",input_text_with_history]
|
| 35 |
|
| 36 |
|
|
|
|
| 25 |
for out in output:
|
| 26 |
stream = copy.deepcopy(out)
|
| 27 |
print(stream["choices"][0]["text"])
|
| 28 |
+
yield "".join(str(stream["choices"][0]["text"]))
|
| 29 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
history =["init",input_text_with_history]
|
| 31 |
|
| 32 |
|