CORVO-AI commited on
Commit
0c8daf3
·
verified ·
1 Parent(s): b48e6ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -86,7 +86,7 @@ def delete_workspace(workspace_id):
86
  # -------------------------------------------------------------------
87
  # Main function that calls the Botpress GPT-4 endpoint
88
  # -------------------------------------------------------------------
89
- def chat_with_assistant(user_input, chat_history, bot_id, workspace_id):
90
  """
91
  Sends the user input and chat history to the Botpress GPT-4 endpoint,
92
  returns the assistant's response and (possibly updated) bot/workspace IDs.
@@ -196,7 +196,7 @@ def chat_endpoint():
196
  # Call our function that interacts with Botpress GPT-4
197
  assistant_response, updated_bot_id, updated_workspace_id = chat_with_assistant(
198
  user_input,
199
- image_url,
200
  GLOBAL_BOT_ID,
201
  GLOBAL_WORKSPACE_ID
202
  )
 
86
  # -------------------------------------------------------------------
87
  # Main function that calls the Botpress GPT-4 endpoint
88
  # -------------------------------------------------------------------
89
+ def chat_with_assistant(user_input, image_url, bot_id, workspace_id):
90
  """
91
  Sends the user input and chat history to the Botpress GPT-4 endpoint,
92
  returns the assistant's response and (possibly updated) bot/workspace IDs.
 
196
  # Call our function that interacts with Botpress GPT-4
197
  assistant_response, updated_bot_id, updated_workspace_id = chat_with_assistant(
198
  user_input,
199
+ image_url, # Pass the image URL here
200
  GLOBAL_BOT_ID,
201
  GLOBAL_WORKSPACE_ID
202
  )