Spaces:
Running
on
Zero
Running
on
Zero
Pierre Chapuis
commited on
support heic (if browser supports it)
Browse files- requirements.txt +2 -0
- src/app.py +3 -0
requirements.txt
CHANGED
|
@@ -2,3 +2,5 @@ git+https://github.com/finegrain-ai/refiners@a5d3c2971b84f6faa4762b1cf5a07f4f812
|
|
| 2 |
gradio_imageslider==0.0.20
|
| 3 |
spaces==0.28.3
|
| 4 |
numpy<2.0.0
|
|
|
|
|
|
|
|
|
| 2 |
gradio_imageslider==0.0.20
|
| 3 |
spaces==0.28.3
|
| 4 |
numpy<2.0.0
|
| 5 |
+
pillow>=10.4.0
|
| 6 |
+
pillow-heif>=0.18.0
|
src/app.py
CHANGED
|
@@ -6,11 +6,14 @@ import torch
|
|
| 6 |
from gradio_imageslider import ImageSlider
|
| 7 |
from huggingface_hub import hf_hub_download
|
| 8 |
from PIL import Image
|
|
|
|
| 9 |
from refiners.fluxion.utils import manual_seed
|
| 10 |
from refiners.foundationals.latent_diffusion import Solver, solvers
|
| 11 |
|
| 12 |
from enhancer import ESRGANUpscaler, ESRGANUpscalerCheckpoints
|
| 13 |
|
|
|
|
|
|
|
| 14 |
TITLE = """
|
| 15 |
<center>
|
| 16 |
|
|
|
|
| 6 |
from gradio_imageslider import ImageSlider
|
| 7 |
from huggingface_hub import hf_hub_download
|
| 8 |
from PIL import Image
|
| 9 |
+
from pillow_heif import register_heif_opener
|
| 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>
|
| 19 |
|