Spaces:
Paused
Paused
Update space
Browse files
app.py
CHANGED
|
@@ -104,7 +104,7 @@ class ChatLLM:
|
|
| 104 |
repeat_penalty=repeat_penalty,
|
| 105 |
stop=TOKEN_STOP,
|
| 106 |
):
|
| 107 |
-
answer = output
|
| 108 |
print("this is the answer")
|
| 109 |
print(answer)
|
| 110 |
history[-1][1] += answer # here we append the answer to the last message in the history
|
|
|
|
| 104 |
repeat_penalty=repeat_penalty,
|
| 105 |
stop=TOKEN_STOP,
|
| 106 |
):
|
| 107 |
+
answer = output["choices"][0]["text"]
|
| 108 |
print("this is the answer")
|
| 109 |
print(answer)
|
| 110 |
history[-1][1] += answer # here we append the answer to the last message in the history
|