Update app.py
Browse files
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["
|
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):
|