Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ model = torchvision.models.resnet18(weights=weights)
|
|
| 15 |
model.eval()
|
| 16 |
|
| 17 |
# Get ImageNet labels
|
| 18 |
-
r =
|
| 19 |
labels = r.text.split("\n")
|
| 20 |
|
| 21 |
# Define prediction function
|
|
|
|
| 15 |
model.eval()
|
| 16 |
|
| 17 |
# Get ImageNet labels
|
| 18 |
+
r = requests.get("https://git.io/JJkYN")
|
| 19 |
labels = r.text.split("\n")
|
| 20 |
|
| 21 |
# Define prediction function
|