Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
63c81e0
1
Parent(s):
f312178
KK
Browse files- .gitignore +2 -2
- app.py +12 -1
.gitignore
CHANGED
|
@@ -5,6 +5,6 @@ images
|
|
| 5 |
backup
|
| 6 |
# run_gradio.py
|
| 7 |
run_foward.py
|
| 8 |
-
|
| 9 |
-
|
| 10 |
|
|
|
|
| 5 |
backup
|
| 6 |
# run_gradio.py
|
| 7 |
run_foward.py
|
| 8 |
+
git-lfs-linux-amd64-v3.5.1.tar.gz
|
| 9 |
+
git-lfs-3.5.1
|
| 10 |
|
app.py
CHANGED
|
@@ -36,7 +36,18 @@ from datasets.utils.warping import register_model2
|
|
| 36 |
import gradio as gr
|
| 37 |
from huggingface_hub import hf_hub_download
|
| 38 |
|
| 39 |
-
example_img_list = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
reg_model_bilin = register_model2((512,512), 'bilinear')
|
| 42 |
|
|
|
|
| 36 |
import gradio as gr
|
| 37 |
from huggingface_hub import hf_hub_download
|
| 38 |
|
| 39 |
+
example_img_list = []
|
| 40 |
+
|
| 41 |
+
for name in ['3_2 copy.png', '25_1 copy.png']:
|
| 42 |
+
local_path = hf_hub_download(
|
| 43 |
+
repo_id="hanquansanren/DvD",
|
| 44 |
+
filename=f"examples/{name}",
|
| 45 |
+
repo_type="model"
|
| 46 |
+
)
|
| 47 |
+
example_img_list.append(local_path)
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
|
| 51 |
|
| 52 |
reg_model_bilin = register_model2((512,512), 'bilinear')
|
| 53 |
|