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