lukmanaj commited on
Commit
9e98f94
·
verified ·
1 Parent(s): d2c554b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def load_model(model_path, device):
11
  model = torchvision.models.densenet201(weights=weights).to(device)
12
  model.classifier = torch.nn.Sequential(
13
  torch.nn.Dropout(p=0.2, inplace=True),
14
- torch.nn.Linear(in_features=1920, out_features=4, bias=True)
15
  ).to(device)
16
  model.load_state_dict(torch.load(model_path, map_location=device))
17
  model.to(device)
 
11
  model = torchvision.models.densenet201(weights=weights).to(device)
12
  model.classifier = torch.nn.Sequential(
13
  torch.nn.Dropout(p=0.2, inplace=True),
14
+ torch.nn.Linear(in_features=1920, out_features=2, bias=True)
15
  ).to(device)
16
  model.load_state_dict(torch.load(model_path, map_location=device))
17
  model.to(device)