Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,9 @@ from PIL import Image
|
|
7 |
os.system("git clone https://github.com/codeslake/RefVSR.git")
|
8 |
os.chdir("RefVSR")
|
9 |
os.system("./install/install_cudnn113.sh")
|
10 |
-
os.system("
|
|
|
|
|
11 |
os.mkdir("RefVSR")
|
12 |
os.system("wget https://huggingface.co/codeslake/RefVSR/resolve/main/RefVSR_small_MFID_8K.pytorch")
|
13 |
sys.path.append("RefVSR")
|
@@ -52,6 +54,6 @@ description="Demo application for Reference-based Video Super-Resolution. To use
|
|
52 |
|
53 |
article = "<p style='text-align: center'><a href='https://junyonglee.me/projects/RefVSR' target='_blank'>Project</a> | <a href='https://arxiv.org/abs/2203.14537' target='_blank'>arXiv</a> | <a href='https://github.com/codeslake/RefVSR' target='_blank'>Github</a></p>"
|
54 |
|
55 |
-
examples=[['
|
56 |
|
57 |
gr.Interface(inference,[gr.inputs.Image(type="pil"), gr.inputs.Image(type="pil")],gr.outputs.Image(type="file"),title=title,description=description,article=article,examples=examples).launch(enable_queue=True)
|
|
|
7 |
os.system("git clone https://github.com/codeslake/RefVSR.git")
|
8 |
os.chdir("RefVSR")
|
9 |
os.system("./install/install_cudnn113.sh")
|
10 |
+
os.system("https://www.dropbox.com/s/xv6inxwy0so4ni0/LR.png?raw=1 -O LR.jpg")
|
11 |
+
os.system("https://www.dropbox.com/s/abydd1oczs1163l/Ref.png?raw=1 -O Ref.jpg")
|
12 |
+
|
13 |
os.mkdir("RefVSR")
|
14 |
os.system("wget https://huggingface.co/codeslake/RefVSR/resolve/main/RefVSR_small_MFID_8K.pytorch")
|
15 |
sys.path.append("RefVSR")
|
|
|
54 |
|
55 |
article = "<p style='text-align: center'><a href='https://junyonglee.me/projects/RefVSR' target='_blank'>Project</a> | <a href='https://arxiv.org/abs/2203.14537' target='_blank'>arXiv</a> | <a href='https://github.com/codeslake/RefVSR' target='_blank'>Github</a></p>"
|
56 |
|
57 |
+
examples=[['LR.jpg'], ['Ref.jpg']]
|
58 |
|
59 |
gr.Interface(inference,[gr.inputs.Image(type="pil"), gr.inputs.Image(type="pil")],gr.outputs.Image(type="file"),title=title,description=description,article=article,examples=examples).launch(enable_queue=True)
|