Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def analyze_ad(image):
|
|
61 |
)
|
62 |
|
63 |
# Extract the response text from the API output
|
64 |
-
result = response
|
65 |
|
66 |
# Return the result for display
|
67 |
return result
|
|
|
61 |
)
|
62 |
|
63 |
# Extract the response text from the API output
|
64 |
+
result = response.choices[0].message.content.strip()
|
65 |
|
66 |
# Return the result for display
|
67 |
return result
|