Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -171,7 +171,7 @@ def function(Textbox, Textbox2, Textbox3):
|
|
171 |
)
|
172 |
print(messages)
|
173 |
reply = chat.choices[0].message.content
|
174 |
-
image_array = download_image(f"https://api.placid.app/u/pydav4ibo?quote[text]={reply}")
|
175 |
messages.append({"role": "assistant", "content": reply})
|
176 |
return image_array
|
177 |
except Exception as e:
|
|
|
171 |
)
|
172 |
print(messages)
|
173 |
reply = chat.choices[0].message.content
|
174 |
+
image_array = download_image(f"https://api.placid.app/u/pydav4ibo?quote[text]={reply.replace(" ", "%20")}")
|
175 |
messages.append({"role": "assistant", "content": reply})
|
176 |
return image_array
|
177 |
except Exception as e:
|