Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -169,7 +169,7 @@ def function(Textbox, Textbox2, Textbox3):
|
|
169 |
# chat = openai.ChatCompletion.create(
|
170 |
# model="gpt-3.5-turbo", messages=messages
|
171 |
# )
|
172 |
-
response = requests.post(
|
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}")
|
|
|
169 |
# chat = openai.ChatCompletion.create(
|
170 |
# model="gpt-3.5-turbo", messages=messages
|
171 |
# )
|
172 |
+
response = requests.post(target2, json=data)
|
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}")
|