Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -6,7 +6,7 @@ import io
|
|
| 6 |
|
| 7 |
app = FastAPI()
|
| 8 |
|
| 9 |
-
# Load the pre-trained VGG16 model for the prediction
|
| 10 |
model = models.vgg16()
|
| 11 |
num_features_in = model.classifier[6].in_features
|
| 12 |
model.classifier[6] = torch.nn.Linear(num_features_in, 1)
|
|
|
|
| 6 |
|
| 7 |
app = FastAPI()
|
| 8 |
|
| 9 |
+
# Load the pre-trained VGG16 model for the prediction of model
|
| 10 |
model = models.vgg16()
|
| 11 |
num_features_in = model.classifier[6].in_features
|
| 12 |
model.classifier[6] = torch.nn.Linear(num_features_in, 1)
|