Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import io
|
|
| 8 |
# Load pre-trained ResNet50 model
|
| 9 |
model = resnet50(pretrained=True)
|
| 10 |
model.fc = torch.nn.Linear(model.fc.in_features, 2) # 2 classes: bullish and bearish
|
| 11 |
-
model.load_state_dict(torch.load('
|
| 12 |
model.eval()
|
| 13 |
|
| 14 |
# Define image transformation
|
|
|
|
| 8 |
# Load pre-trained ResNet50 model
|
| 9 |
model = resnet50(pretrained=True)
|
| 10 |
model.fc = torch.nn.Linear(model.fc.in_features, 2) # 2 classes: bullish and bearish
|
| 11 |
+
model.load_state_dict(torch.load('/Users/kaylahoffman/Desktop/full_model.h5'))
|
| 12 |
model.eval()
|
| 13 |
|
| 14 |
# Define image transformation
|