citradiani commited on
Commit
4d69d16
·
verified ·
1 Parent(s): d81bd61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def predict(img_path):
44
  # Apply transformations
45
  image = test_transforms(image)
46
 
47
- inf_model = models.resnet18(pretrained=False, weights='ResNet50_Weights.DEFAULT')
48
 
49
  num_ftrs = inf_model.fc.in_features
50
  # Here the size of each output sample is set to 2.
 
44
  # Apply transformations
45
  image = test_transforms(image)
46
 
47
+ inf_model = models.resnet18(pretrained=False)
48
 
49
  num_ftrs = inf_model.fc.in_features
50
  # Here the size of each output sample is set to 2.