DmitrMakeev
commited on
Commit
•
24bdcbc
1
Parent(s):
4f828aa
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ if RUN_MODE != "local":
|
|
9 |
os.system("wget https://huggingface.co/menghanxia/disco/resolve/main/disco-beta.pth.rar")
|
10 |
os.rename("disco-beta.pth.rar", "./checkpoints/disco-beta.pth.rar")
|
11 |
## examples
|
12 |
-
os.system("wget https://huggingface.co/menghanxia/disco/resolve/main/
|
13 |
|
14 |
## step 1: set up model
|
15 |
device = "cpu"
|
@@ -71,7 +71,7 @@ with demo:
|
|
71 |
""")
|
72 |
if RUN_MODE != "local":
|
73 |
gr.Examples(examples=[
|
74 |
-
['
|
75 |
],
|
76 |
inputs=[Image_input,Num_anchor,Radio_resolution], outputs=[Image_output], label="Examples", cache_examples=False)
|
77 |
gr.HTML(value="""
|
|
|
9 |
os.system("wget https://huggingface.co/menghanxia/disco/resolve/main/disco-beta.pth.rar")
|
10 |
os.rename("disco-beta.pth.rar", "./checkpoints/disco-beta.pth.rar")
|
11 |
## examples
|
12 |
+
os.system("wget https://huggingface.co/menghanxia/disco/resolve/main/04.jpg")
|
13 |
|
14 |
## step 1: set up model
|
15 |
device = "cpu"
|
|
|
71 |
""")
|
72 |
if RUN_MODE != "local":
|
73 |
gr.Examples(examples=[
|
74 |
+
['04.jpg', 8, "Low (256x256)"],
|
75 |
],
|
76 |
inputs=[Image_input,Num_anchor,Radio_resolution], outputs=[Image_output], label="Examples", cache_examples=False)
|
77 |
gr.HTML(value="""
|