tommy24 commited on
Commit
16f36de
·
1 Parent(s): cfcf96f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -176,7 +176,7 @@ def function(Textbox, Textbox2, Textbox3):
176
  reply = response.content.decode("utf-8")
177
  reply = reply.replace(" ", "%20")
178
  image_array = download_image(f"https://api.placid.app/u/pydav4ibo?quote[text]={reply}")
179
- messages.append({"role": "assistant", "content": reply})
180
  return image_array
181
  except Exception as e:
182
  print(traceback.format_exc())
 
176
  reply = response.content.decode("utf-8")
177
  reply = reply.replace(" ", "%20")
178
  image_array = download_image(f"https://api.placid.app/u/pydav4ibo?quote[text]={reply}")
179
+ data["messages"].append({"role": "assistant", "content": reply})
180
  return image_array
181
  except Exception as e:
182
  print(traceback.format_exc())