Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -176,7 +176,7 @@ def function(Textbox, Textbox2, Textbox3):
|
|
176 |
reply = response.content.decode("utf-8")
|
177 |
reply = reply.replace(" ", "%20")
|
178 |
image_array = download_image(f"https://api.placid.app/u/pydav4ibo?quote[text]={reply}")
|
179 |
-
messages.append({"role": "assistant", "content": reply})
|
180 |
return image_array
|
181 |
except Exception as e:
|
182 |
print(traceback.format_exc())
|
|
|
176 |
reply = response.content.decode("utf-8")
|
177 |
reply = reply.replace(" ", "%20")
|
178 |
image_array = download_image(f"https://api.placid.app/u/pydav4ibo?quote[text]={reply}")
|
179 |
+
data["messages"].append({"role": "assistant", "content": reply})
|
180 |
return image_array
|
181 |
except Exception as e:
|
182 |
print(traceback.format_exc())
|