Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
b16b0a3
1
Parent(s):
b6102ce
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,9 @@ from torchvision import transforms
|
|
11 |
import torchtext
|
12 |
|
13 |
|
|
|
|
|
|
|
14 |
|
15 |
idx = 0
|
16 |
|
@@ -513,5 +516,9 @@ gr.Interface(
|
|
513 |
gr.outputs.Image(type="pil", label="Output"),
|
514 |
title=title,
|
515 |
description=description,
|
516 |
-
article=article
|
|
|
|
|
|
|
|
|
517 |
).launch(debug=True)
|
|
|
11 |
import torchtext
|
12 |
|
13 |
|
14 |
+
# Images
|
15 |
+
torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2021/08/04/14/16/tower-6521842_1280.jpg', 'tower.jpg')
|
16 |
+
torch.hub.download_url_to_file('https://cdn.pixabay.com/photo/2017/08/31/05/36/buildings-2699520_1280.jpg', 'city.jpg')
|
17 |
|
18 |
idx = 0
|
19 |
|
|
|
516 |
gr.outputs.Image(type="pil", label="Output"),
|
517 |
title=title,
|
518 |
description=description,
|
519 |
+
article=article,
|
520 |
+
examples=[
|
521 |
+
['city.jpg'],
|
522 |
+
['tower.jpg']
|
523 |
+
]
|
524 |
).launch(debug=True)
|