Spaces:
Runtime error
Runtime error
Update bf_trigger.py
Browse files- bf_trigger.py +1 -1
bf_trigger.py
CHANGED
@@ -385,7 +385,7 @@ def create_ai_asset(asset_dict, topical_map, collection_name, new_imgs, tags=Tru
|
|
385 |
|
386 |
# If the image is None, it might be a HEIC file
|
387 |
if image is None:
|
388 |
-
heif_file = read_heif(img_array)
|
389 |
img = Image.frombytes(
|
390 |
heif_file.mode,
|
391 |
heif_file.size,
|
|
|
385 |
|
386 |
# If the image is None, it might be a HEIC file
|
387 |
if image is None:
|
388 |
+
heif_file = pyheif.read_heif(img_array)
|
389 |
img = Image.frombytes(
|
390 |
heif_file.mode,
|
391 |
heif_file.size,
|