Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,8 +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 ""
|
| 29 |
-
print("latest token : " ,stream["choices"][
|
| 30 |
|
| 31 |
history =["init",input_text_with_history]
|
| 32 |
|
|
|
|
| 25 |
for out in output:
|
| 26 |
stream = copy.deepcopy(out)
|
| 27 |
print(stream["choices"][0]["text"])
|
| 28 |
+
yield "You typed: " + stream["choices"][i+1]["text"]
|
| 29 |
+
print("latest token : " ,stream["choices"][0]["text"])
|
| 30 |
|
| 31 |
history =["init",input_text_with_history]
|
| 32 |
|