Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ conditions = [
|
|
| 23 |
# Load and configure the model
|
| 24 |
model = models.densenet121(pretrained=True) # DenseNet pre-trained on ImageNet
|
| 25 |
num_features = model.classifier.in_features
|
| 26 |
-
model.classifier = torch.nn.Linear(num_features, len(conditions)) # Output for all
|
| 27 |
model.eval()
|
| 28 |
|
| 29 |
# Define device
|
|
|
|
| 23 |
# Load and configure the model
|
| 24 |
model = models.densenet121(pretrained=True) # DenseNet pre-trained on ImageNet
|
| 25 |
num_features = model.classifier.in_features
|
| 26 |
+
model.classifier = torch.nn.Linear(num_features, len(conditions)) # Output for all 24 conditions
|
| 27 |
model.eval()
|
| 28 |
|
| 29 |
# Define device
|