Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -173,7 +173,7 @@ def function(Textbox, Textbox2, Textbox3):
|
|
173 |
# )
|
174 |
response = requests.post(target2, json=data)
|
175 |
reply = response.content.decode("utf-8")
|
176 |
-
reply = reply.replace(" ", "%20")
|
177 |
# image_array = download_image(f"https://api.placid.app/u/pydav4ibo?quote[text]={reply}")
|
178 |
data["messages"].append({"role": "assistant", "content": reply})
|
179 |
return reply
|
|
|
173 |
# )
|
174 |
response = requests.post(target2, json=data)
|
175 |
reply = response.content.decode("utf-8")
|
176 |
+
# reply = reply.replace(" ", "%20")
|
177 |
# image_array = download_image(f"https://api.placid.app/u/pydav4ibo?quote[text]={reply}")
|
178 |
data["messages"].append({"role": "assistant", "content": reply})
|
179 |
return reply
|