Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -387,9 +387,9 @@ def create_asset(client_name, collection_id, image_path, topical_map, new_imgs,
|
|
387 |
'''
|
388 |
|
389 |
# get seo, topic, and sub-topic from OpenAI API
|
390 |
-
json_dict = get_seo_tags(
|
391 |
if not json_dict:
|
392 |
-
json_dict = get_seo_tags(
|
393 |
|
394 |
topic = json_dict['topic']
|
395 |
description = json_dict['description']
|
|
|
387 |
'''
|
388 |
|
389 |
# get seo, topic, and sub-topic from OpenAI API
|
390 |
+
json_dict = get_seo_tags(image_path, topical_map, new_imgs)
|
391 |
if not json_dict:
|
392 |
+
json_dict = get_seo_tags(image_path, topical_map, new_imgs)
|
393 |
|
394 |
topic = json_dict['topic']
|
395 |
description = json_dict['description']
|