processoptimisationsystem commited on
Commit
5655e4a
·
verified ·
1 Parent(s): c33506a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -82,7 +82,7 @@ class MyModel(nn.Module):
82
  # Load model
83
  model = MyModel(num_classes=num_classes).to(device)
84
  try:
85
- model.load_state_dict(torch.load("brainCNNpytorch_model", map_location=torch.device('cpu')))
86
  except FileNotFoundError:
87
  st.error("Model file 'brainCNNpytorch_model' not found. Please upload the file correctly.")
88
  st.stop()
 
82
  # Load model
83
  model = MyModel(num_classes=num_classes).to(device)
84
  try:
85
+ model.load_state_dict(torch.load("src/brainCNNpytorch_model", map_location=torch.device('cpu')))
86
  except FileNotFoundError:
87
  st.error("Model file 'brainCNNpytorch_model' not found. Please upload the file correctly.")
88
  st.stop()