Spaces:
Running
on
Zero
Running
on
Zero
update refiners deps
Browse files- requirements.txt +1 -1
- src/app.py +2 -11
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
git+https://github.com/finegrain-ai/refiners@
|
2 |
gradio_imageslider==0.0.20
|
3 |
spaces==0.28.3
|
4 |
numpy<2.0.0
|
|
|
1 |
+
git+https://github.com/finegrain-ai/refiners@a5d3c2971b84f6faa4762b1cf5a07f4f812bb1f5
|
2 |
gradio_imageslider==0.0.20
|
3 |
spaces==0.28.3
|
4 |
numpy<2.0.0
|
src/app.py
CHANGED
@@ -1,17 +1,8 @@
|
|
1 |
-
import spaces
|
2 |
-
import torch
|
3 |
-
|
4 |
-
|
5 |
-
# see https://huggingface.co/spaces/zero-gpu-explorers/README/discussions/85
|
6 |
-
def my_arange(*args, **kwargs):
|
7 |
-
return torch.arange(*args, **kwargs)
|
8 |
-
|
9 |
-
|
10 |
-
torch.arange = my_arange
|
11 |
-
|
12 |
from pathlib import Path
|
13 |
|
14 |
import gradio as gr
|
|
|
|
|
15 |
from gradio_imageslider import ImageSlider
|
16 |
from huggingface_hub import hf_hub_download
|
17 |
from PIL import Image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from pathlib import Path
|
2 |
|
3 |
import gradio as gr
|
4 |
+
import spaces
|
5 |
+
import torch
|
6 |
from gradio_imageslider import ImageSlider
|
7 |
from huggingface_hub import hf_hub_download
|
8 |
from PIL import Image
|