Pash1986 commited on
Commit
a8ca956
1 Parent(s): f047147

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ def generate_image_description_with_claude(image_base64):
67
  )
68
  response_body = json.loads(claude_response.get("body").read())
69
  # Assuming the response contains a field 'content' with the description
70
- return response_body["messages"][0]["content"][0].get("text", "No description available")
71
 
72
  # Main function to start image search
73
  def start_image_search(image, text):
 
67
  )
68
  response_body = json.loads(claude_response.get("body").read())
69
  # Assuming the response contains a field 'content' with the description
70
+ return response_body["content"][0].get("text", "No description available")
71
 
72
  # Main function to start image search
73
  def start_image_search(image, text):