Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -43,7 +43,7 @@ class MobileViTSegmentation(nn.Module):
|
|
| 43 |
@st.cache_resource
|
| 44 |
def load_model():
|
| 45 |
model = MobileViTSegmentation()
|
| 46 |
-
state_dict = torch.load("
|
| 47 |
model.load_state_dict(state_dict)
|
| 48 |
model.eval()
|
| 49 |
return model
|
|
|
|
| 43 |
@st.cache_resource
|
| 44 |
def load_model():
|
| 45 |
model = MobileViTSegmentation()
|
| 46 |
+
state_dict = torch.load("mobilevit_teeth_segmentation.pth", map_location="cpu")
|
| 47 |
model.load_state_dict(state_dict)
|
| 48 |
model.eval()
|
| 49 |
return model
|