Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def predict(input, chatbot, max_length, top_p, temperature, history):
|
|
22 |
response = ""
|
23 |
history.append(input)
|
24 |
|
25 |
-
for output in llm(input, stream=True, temperature=temperature, top_p=top_p, max_tokens=max_length, stop=["<|
|
26 |
piece = output['choices'][0]['text']
|
27 |
response += piece
|
28 |
chatbot[-1] = (chatbot[-1][0], response)
|
|
|
22 |
response = ""
|
23 |
history.append(input)
|
24 |
|
25 |
+
for output in llm(input, stream=True, temperature=temperature, top_p=top_p, max_tokens=max_length, stop=["<|im_end|>"]):
|
26 |
piece = output['choices'][0]['text']
|
27 |
response += piece
|
28 |
chatbot[-1] = (chatbot[-1][0], response)
|