Saim8250 commited on
Commit
3adcb80
·
verified ·
1 Parent(s): db3dea2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from torchvision import transforms
4
  from PIL import Image
5
 
6
  # Load the segmentation model (replace 'path/to/lightmed_model' with the actual path)
7
- model_path = 'path/to/lightmed_model'
8
  segmentation_model = torch.load(model_path, map_location=torch.device('cpu'))
9
  segmentation_model.eval()
10
 
 
4
  from PIL import Image
5
 
6
  # Load the segmentation model (replace 'path/to/lightmed_model' with the actual path)
7
+ model_path = 'medsam_lite/lite_medsam.pth'
8
  segmentation_model = torch.load(model_path, map_location=torch.device('cpu'))
9
  segmentation_model.eval()
10