Spaces:
Sleeping
Sleeping
luxmorocco
commited on
Commit
•
d67965f
1
Parent(s):
5587829
Update app.py
Browse files
app.py
CHANGED
@@ -141,7 +141,7 @@ uploaded_file = st.sidebar.file_uploader("Upload Chest X-ray image", type=["png"
|
|
141 |
# Load the model (use your model loading function)
|
142 |
# Ensure the model path is correct and accessible
|
143 |
model = create_model(num_classes=14)
|
144 |
-
model.load_state_dict(torch.load('
|
145 |
model.eval()
|
146 |
|
147 |
def process_image(image_path):
|
|
|
141 |
# Load the model (use your model loading function)
|
142 |
# Ensure the model path is correct and accessible
|
143 |
model = create_model(num_classes=14)
|
144 |
+
model.load_state_dict(torch.load('Doctoria CXR Thoraric Full Model.pth', map_location=torch.device('cpu')))
|
145 |
model.eval()
|
146 |
|
147 |
def process_image(image_path):
|