yuhe6 commited on
Commit
d3a747c
·
1 Parent(s): 29b3dd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("imagenet_classes.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()]
 
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()]