Pierre Chapuis
commited on
Commit
•
bda2da7
1
Parent(s):
705ee8a
support AVIF
Browse files- src/app.py +3 -2
src/app.py
CHANGED
@@ -6,13 +6,14 @@ import torch
|
|
6 |
from gradio_imageslider import ImageSlider
|
7 |
from huggingface_hub import hf_hub_download
|
8 |
from PIL import Image
|
9 |
-
|
10 |
from refiners.fluxion.utils import manual_seed
|
11 |
from refiners.foundationals.latent_diffusion import Solver, solvers
|
12 |
|
13 |
from enhancer import ESRGANUpscaler, ESRGANUpscalerCheckpoints
|
14 |
|
15 |
-
register_heif_opener()
|
|
|
16 |
|
17 |
TITLE = """
|
18 |
<center>
|
|
|
6 |
from gradio_imageslider import ImageSlider
|
7 |
from huggingface_hub import hf_hub_download
|
8 |
from PIL import Image
|
9 |
+
import pillow_heif
|
10 |
from refiners.fluxion.utils import manual_seed
|
11 |
from refiners.foundationals.latent_diffusion import Solver, solvers
|
12 |
|
13 |
from enhancer import ESRGANUpscaler, ESRGANUpscalerCheckpoints
|
14 |
|
15 |
+
pillow_heif.register_heif_opener()
|
16 |
+
pillow_heif.register_avif_opener()
|
17 |
|
18 |
TITLE = """
|
19 |
<center>
|