Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -171,7 +171,7 @@ def respond(message, history):
|
|
| 171 |
output = ""
|
| 172 |
for response in stream:
|
| 173 |
if not response.token.text == "hello":
|
| 174 |
-
output += response.token.text
|
| 175 |
yield output
|
| 176 |
elif json_data["name"] == "image_generation":
|
| 177 |
query = json_data["arguments"]["query"]
|
|
|
|
| 171 |
output = ""
|
| 172 |
for response in stream:
|
| 173 |
if not response.token.text == "hello":
|
| 174 |
+
output += response.token.text.replace("<|im_end|>", "")
|
| 175 |
yield output
|
| 176 |
elif json_data["name"] == "image_generation":
|
| 177 |
query = json_data["arguments"]["query"]
|