Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import os
|
| 2 |
import sys
|
|
|
|
| 3 |
os.system("pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.10/index.html")
|
| 4 |
os.system("pip install mmedit")
|
| 5 |
os.system("git clone https://github.com/ckkelvinchan/RealBasicVSR.git")
|
|
@@ -19,6 +20,6 @@ description="Gradio demo for Investigating Tradeoffs in Real-World Video Super-R
|
|
| 19 |
|
| 20 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2111.12704' target='_blank'>Investigating Tradeoffs in Real-World Video Super-Resolution</a> | <a href='https://github.com/ckkelvinchan/realbasicvsr' target='_blank'>Github Repo</a></p>"
|
| 21 |
|
| 22 |
-
examples=[['
|
| 23 |
|
| 24 |
gr.Interface(inference,gr.inputs.Image(type="pil",shape=(256,256)),gr.outputs.Image(type="file"),title=title,description=description,article=article,examples=examples).launch(enable_queue=True)
|
|
|
|
| 1 |
import os
|
| 2 |
import sys
|
| 3 |
+
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")
|
| 4 |
os.system("pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.10/index.html")
|
| 5 |
os.system("pip install mmedit")
|
| 6 |
os.system("git clone https://github.com/ckkelvinchan/RealBasicVSR.git")
|
|
|
|
| 20 |
|
| 21 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2111.12704' target='_blank'>Investigating Tradeoffs in Real-World Video Super-Resolution</a> | <a href='https://github.com/ckkelvinchan/realbasicvsr' target='_blank'>Github Repo</a></p>"
|
| 22 |
|
| 23 |
+
examples=[['mona.jpg']]
|
| 24 |
|
| 25 |
gr.Interface(inference,gr.inputs.Image(type="pil",shape=(256,256)),gr.outputs.Image(type="file"),title=title,description=description,article=article,examples=examples).launch(enable_queue=True)
|