Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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":
|
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"]
|