KabeerAmjad commited on
Commit
998a9ec
1 Parent(s): fadf2ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from transformers import AutoFeatureExtractor
8
  # Load the model from Hugging Face model hub
9
  model_id = "KabeerAmjad/food_classification_model"
10
  # Load ResNet50 model and adjust the final layer
11
- model = models.resnet50(pretrained=False)
12
  model.fc = nn.Linear(model.fc.in_features, 11) # Adjust the output layer to match your number of classes
13
 
14
  # Load the weights from the Hugging Face model hub
 
8
  # Load the model from Hugging Face model hub
9
  model_id = "KabeerAmjad/food_classification_model"
10
  # Load ResNet50 model and adjust the final layer
11
+ model = models.resnet50(pretrained=True)
12
  model.fc = nn.Linear(model.fc.in_features, 11) # Adjust the output layer to match your number of classes
13
 
14
  # Load the weights from the Hugging Face model hub