Spaces:
Runtime error
Runtime error
Update bf_trigger.py
Browse files- bf_trigger.py +2 -0
bf_trigger.py
CHANGED
@@ -187,6 +187,8 @@ def get_seo_tags(image_url, topical_map, new_imgs, attempts=0, max_attempts=5):
|
|
187 |
topic_list = topical_map.split('\n')
|
188 |
topic_list = [topic.strip() for topic in topic_list]
|
189 |
topic_list.insert(0, "irrelevant")
|
|
|
|
|
190 |
|
191 |
def compress_and_encode_image(url, target_size_mb=20, quality=70):
|
192 |
# Fetch the image from the URL
|
|
|
187 |
topic_list = topical_map.split('\n')
|
188 |
topic_list = [topic.strip() for topic in topic_list]
|
189 |
topic_list.insert(0, "irrelevant")
|
190 |
+
|
191 |
+
register_heif_opener()
|
192 |
|
193 |
def compress_and_encode_image(url, target_size_mb=20, quality=70):
|
194 |
# Fetch the image from the URL
|