tommy24 commited on
Commit
5a08733
·
1 Parent(s): 2931e11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -217,7 +217,7 @@ def function(Textbox, Textbox2, Textbox3, Dropdown):
217
  # reply = response.content.decode("utf-8")
218
  # reply = reply.replace(" ", "%20")
219
  # image_array = download_image(f"https://api.placid.app/u/pydav4ibo?quote[text]={reply}")
220
- data["messages"].append({"role": "assistant", "content": reply})
221
  assistant_response = chat_with_assistant(messages, functions)
222
  if assistant_response.get("function_call"):
223
  function_name = assistant_response["function_call"]["name"]
 
217
  # reply = response.content.decode("utf-8")
218
  # reply = reply.replace(" ", "%20")
219
  # image_array = download_image(f"https://api.placid.app/u/pydav4ibo?quote[text]={reply}")
220
+ data["messages"].append({"role": "assistant", "content": Textbox})
221
  assistant_response = chat_with_assistant(messages, functions)
222
  if assistant_response.get("function_call"):
223
  function_name = assistant_response["function_call"]["name"]