Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
720a202
1
Parent(s):
413afe0
app.py
CHANGED
|
@@ -38,6 +38,12 @@ 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",
|
|
@@ -381,7 +387,7 @@ if __name__ == '__main__':
|
|
| 381 |
],
|
| 382 |
title="Document Image Dewarping",
|
| 383 |
description="This is a demo for SIGGRAPH Asia 2025 paper 'DvD: Unleashing a Generative Paradigm for Document Dewarping via Coordinates-based Diffusion Model' ",
|
| 384 |
-
examples=
|
| 385 |
)
|
| 386 |
|
| 387 |
# demo.launch(share=True, debug=True, server_name="10.7.88.77")
|
|
|
|
| 38 |
|
| 39 |
example_img_list = []
|
| 40 |
|
| 41 |
+
EXAMPLES = [
|
| 42 |
+
["https://huggingface.co/hanquansanren/DvD/resolve/main/examples/25_1.png"],
|
| 43 |
+
["https://huggingface.co/hanquansanren/DvD/resolve/main/examples/3_2.png"],
|
| 44 |
+
]
|
| 45 |
+
|
| 46 |
+
|
| 47 |
for name in ['3_2 copy.png', '25_1 copy.png']:
|
| 48 |
local_path = [hf_hub_download(
|
| 49 |
repo_id="hanquansanren/DvD",
|
|
|
|
| 387 |
],
|
| 388 |
title="Document Image Dewarping",
|
| 389 |
description="This is a demo for SIGGRAPH Asia 2025 paper 'DvD: Unleashing a Generative Paradigm for Document Dewarping via Coordinates-based Diffusion Model' ",
|
| 390 |
+
examples=EXAMPLES
|
| 391 |
)
|
| 392 |
|
| 393 |
# demo.launch(share=True, debug=True, server_name="10.7.88.77")
|