Spaces:
Running
on
Zero
Running
on
Zero
Update chatbot.py
Browse files- chatbot.py +1 -1
chatbot.py
CHANGED
@@ -227,7 +227,7 @@ def model_inference(
|
|
227 |
messages += f"\n<|im_start|>assistant\n{str(msg[1])}<|im_end|>"
|
228 |
|
229 |
messages+=f"\n<|im_start|>user\n{user_prompt}<|im_end|>\n<|im_start|>web_result\n{web2}<|im_end|>\n<|im_start|>assistant\n"
|
230 |
-
stream =
|
231 |
output = ""
|
232 |
# Construct the output from the stream of tokens
|
233 |
for response in stream:
|
|
|
227 |
messages += f"\n<|im_start|>assistant\n{str(msg[1])}<|im_end|>"
|
228 |
|
229 |
messages+=f"\n<|im_start|>user\n{user_prompt}<|im_end|>\n<|im_start|>web_result\n{web2}<|im_end|>\n<|im_start|>assistant\n"
|
230 |
+
stream = client_mixtral.text_generation(messages, **generate_kwargs)
|
231 |
output = ""
|
232 |
# Construct the output from the stream of tokens
|
233 |
for response in stream:
|