Pierre Chapuis
commited on
support AVIF
Browse files- src/app.py +3 -2
src/app.py
CHANGED
@@ -3,13 +3,14 @@ from typing import Any
|
|
3 |
|
4 |
import gradio as gr
|
5 |
import httpx
|
|
|
6 |
from environs import Env
|
7 |
from gradio_image_annotation import image_annotator
|
8 |
from gradio_imageslider import ImageSlider
|
9 |
from PIL import Image
|
10 |
-
from pillow_heif import register_heif_opener
|
11 |
|
12 |
-
register_heif_opener()
|
|
|
13 |
|
14 |
env = Env()
|
15 |
env.read_env()
|
|
|
3 |
|
4 |
import gradio as gr
|
5 |
import httpx
|
6 |
+
import pillow_heif
|
7 |
from environs import Env
|
8 |
from gradio_image_annotation import image_annotator
|
9 |
from gradio_imageslider import ImageSlider
|
10 |
from PIL import Image
|
|
|
11 |
|
12 |
+
pillow_heif.register_heif_opener()
|
13 |
+
pillow_heif.register_avif_opener()
|
14 |
|
15 |
env = Env()
|
16 |
env.read_env()
|