Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -139,8 +139,6 @@ def get_seo_tags(image_path, topical_map, attempts=0):
|
|
139 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
140 |
print(response.json())
|
141 |
|
142 |
-
if response.json()['choices'][0]['message']['content'] == 'irrelevant':
|
143 |
-
return {'topic': 'irrelevant'}
|
144 |
|
145 |
while True:
|
146 |
try:
|
|
|
139 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
140 |
print(response.json())
|
141 |
|
|
|
|
|
142 |
|
143 |
while True:
|
144 |
try:
|