Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = '
|
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 |
|