Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
78eae8c
1
Parent(s):
3450976
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,7 @@ import sys
|
|
| 8 |
from subprocess import call
|
| 9 |
|
| 10 |
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
def run_cmd(command):
|
|
@@ -41,9 +42,9 @@ def inference(img):
|
|
| 41 |
return os.path.join(OUTPUT_DIR, "1_out.jpg")
|
| 42 |
|
| 43 |
|
| 44 |
-
title = "
|
| 45 |
-
description = "demo for
|
| 46 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/
|
| 47 |
|
| 48 |
gr.Interface(
|
| 49 |
inference,
|
|
@@ -52,4 +53,7 @@ gr.Interface(
|
|
| 52 |
title=title,
|
| 53 |
description=description,
|
| 54 |
article=article,
|
|
|
|
|
|
|
|
|
|
| 55 |
).launch(debug=True)
|
|
|
|
| 8 |
from subprocess import call
|
| 9 |
|
| 10 |
|
| 11 |
+
torch.hub.download_url_to_file('https://images.pexels.com/photos/1668928/pexels-photo-1668928.jpeg', 'city.jpeg')
|
| 12 |
|
| 13 |
|
| 14 |
def run_cmd(command):
|
|
|
|
| 42 |
return os.path.join(OUTPUT_DIR, "1_out.jpg")
|
| 43 |
|
| 44 |
|
| 45 |
+
title = "Real-ESRGAN"
|
| 46 |
+
description = "demo for Real-ESRGAN. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
|
| 47 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2107.10833'>Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data</a> | <a href='https://github.com/xinntao/Real-ESRGAN'>Github Repo</a></p>"
|
| 48 |
|
| 49 |
gr.Interface(
|
| 50 |
inference,
|
|
|
|
| 53 |
title=title,
|
| 54 |
description=description,
|
| 55 |
article=article,
|
| 56 |
+
examples=[
|
| 57 |
+
['city.jpeg']
|
| 58 |
+
]
|
| 59 |
).launch(debug=True)
|