Kaylah072001 commited on
Commit
2626788
·
verified ·
1 Parent(s): b8a59e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('path_to_your_trained_model.pth'))
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