tommy24 commited on
Commit
8fdfcb6
·
1 Parent(s): ac96886

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -222,6 +222,7 @@ def function(Textbox, Textbox2, Textbox3, Dropdown):
222
  # image_array = download_image(f"https://api.placid.app/u/pydav4ibo?quote[text]={reply}")
223
  data["messages"].append({"role": "assistant", "content": Textbox})
224
  assistant_response = chat_with_assistant(data["messages"], functions)
 
225
  if assistant_response.get("function_call"):
226
  function_name = assistant_response["function_call"]["name"]
227
  function_args = json.loads(assistant_response["function_call"]["arguments"])
 
222
  # image_array = download_image(f"https://api.placid.app/u/pydav4ibo?quote[text]={reply}")
223
  data["messages"].append({"role": "assistant", "content": Textbox})
224
  assistant_response = chat_with_assistant(data["messages"], functions)
225
+ print(assistant_response)
226
  if assistant_response.get("function_call"):
227
  function_name = assistant_response["function_call"]["name"]
228
  function_args = json.loads(assistant_response["function_call"]["arguments"])