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