Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def inference(input_image):
|
|
42 |
probabilities = torch.nn.functional.softmax(output[0], dim=0)
|
43 |
|
44 |
# Read the categories
|
45 |
-
with open("
|
46 |
categories = [s.strip() for s in f.readlines()]
|
47 |
with open("dog_cat.txt", "r") as f:
|
48 |
categories = [s.strip() for s in f.readlines()]
|
|
|
42 |
probabilities = torch.nn.functional.softmax(output[0], dim=0)
|
43 |
|
44 |
# Read the categories
|
45 |
+
with open("dog_cat.txt", "r") as f:
|
46 |
categories = [s.strip() for s in f.readlines()]
|
47 |
with open("dog_cat.txt", "r") as f:
|
48 |
categories = [s.strip() for s in f.readlines()]
|