Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ os.chdir("RefVSR")
|
|
9 |
os.system("./install/install_cudnn113.sh")
|
10 |
os.system("wget https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg/800px-Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg -O mona.jpg")
|
11 |
os.mkdir("RefVSR")
|
12 |
-
os.system("wget
|
13 |
sys.path.append("RefVSR")
|
14 |
|
15 |
## RefVSR
|
@@ -50,8 +50,8 @@ def inference(LR, Ref):
|
|
50 |
title="RefVSR"
|
51 |
description="Demo application for Reference-based Video Super-Resolution. To use it, simply upload your image or click on one of the examples to load them. Read more at the links below."
|
52 |
|
53 |
-
article = "<
|
54 |
|
55 |
examples=[['mona.jpg']]
|
56 |
|
57 |
-
gr.Interface(inference,gr.inputs.Image(type="pil"),gr.outputs.Image(type="file"),title=title,description=description,article=article,examples=examples).launch(enable_queue=True)
|
|
|
9 |
os.system("./install/install_cudnn113.sh")
|
10 |
os.system("wget https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg/800px-Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg -O mona.jpg")
|
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")
|
14 |
|
15 |
## RefVSR
|
|
|
50 |
title="RefVSR"
|
51 |
description="Demo application for Reference-based Video Super-Resolution. To use it, simply upload your image or click on one of the examples to load them. Read more at the links below."
|
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=[['mona.jpg']]
|
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)
|