Spaces:
Paused
Paused
Update space
Browse files
app.py
CHANGED
@@ -104,10 +104,10 @@ class ChatLLM:
|
|
104 |
repeat_penalty=repeat_penalty,
|
105 |
stop=TOKEN_STOP,
|
106 |
):
|
107 |
-
answer = output
|
108 |
history[-1][1] += answer # here we append the answer to the last message in the history
|
109 |
# stream the response
|
110 |
-
yield history,
|
111 |
|
112 |
|
113 |
def user(message, history):
|
|
|
104 |
repeat_penalty=repeat_penalty,
|
105 |
stop=TOKEN_STOP,
|
106 |
):
|
107 |
+
answer = output
|
108 |
history[-1][1] += answer # here we append the answer to the last message in the history
|
109 |
# stream the response
|
110 |
+
yield history, history
|
111 |
|
112 |
|
113 |
def user(message, history):
|