Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import torch
|
|
| 2 |
|
| 3 |
# Download an example image from the pytorch website
|
| 4 |
import urllib
|
| 5 |
-
url, filename = ("https://
|
| 6 |
try: urllib.URLopener().retrieve(url, filename)
|
| 7 |
except: urllib.request.urlretrieve(url, filename)
|
| 8 |
# sample execution (requires torchvision)
|
|
@@ -59,5 +59,5 @@ gr.Interface(
|
|
| 59 |
description=description,
|
| 60 |
article=article,
|
| 61 |
examples=[
|
| 62 |
-
["
|
| 63 |
]).launch()
|
|
|
|
| 2 |
|
| 3 |
# Download an example image from the pytorch website
|
| 4 |
import urllib
|
| 5 |
+
url, filename = ("https://pytorch.org/assets/images/deeplab1.png", "test.png")
|
| 6 |
try: urllib.URLopener().retrieve(url, filename)
|
| 7 |
except: urllib.request.urlretrieve(url, filename)
|
| 8 |
# sample execution (requires torchvision)
|
|
|
|
| 59 |
description=description,
|
| 60 |
article=article,
|
| 61 |
examples=[
|
| 62 |
+
["test.png"]
|
| 63 |
]).launch()
|