svsaurav95 commited on
Commit
30a5939
·
verified ·
1 Parent(s): c08e32a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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("mobilevit_teeth_segmentation.pth", map_location="cpu")
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("ToothSegmentation/mobilevit_teeth_segmentation.pth", map_location="cpu")
47
  model.load_state_dict(state_dict)
48
  model.eval()
49
  return model