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