tommy24 commited on
Commit
b9ce86c
·
1 Parent(s): 40a9fee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -171,10 +171,10 @@ def function(Textbox, Textbox2, Textbox3):
171
  # )
172
  messages.append({"role": "user", "content": Textbox})
173
  post = requests.post(target2, json=messages)
 
174
  reply = post.content.decode("utf-8")
175
  reply = reply.replace(" ", "%20")
176
  image_array = download_image(f"https://api.placid.app/u/pydav4ibo?quote[text]={reply}")
177
- print(post.content)
178
  messages.append({"role": "assistant", "content": reply})
179
  return image_array
180
  except Exception as e:
 
171
  # )
172
  messages.append({"role": "user", "content": Textbox})
173
  post = requests.post(target2, json=messages)
174
+ print(post.content)
175
  reply = post.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
  messages.append({"role": "assistant", "content": reply})
179
  return image_array
180
  except Exception as e: