Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from PIL import Image
|
|
| 4 |
import torchvision.transforms as transforms
|
| 5 |
from ultralytics import YOLO
|
| 6 |
|
| 7 |
-
# Load
|
| 8 |
skin_tone_model = torch.load("SkinTone.pth", map_location=torch.device('cpu'))
|
| 9 |
disease_model = YOLO("last.pt")
|
| 10 |
|
|
|
|
| 4 |
import torchvision.transforms as transforms
|
| 5 |
from ultralytics import YOLO
|
| 6 |
|
| 7 |
+
# Load models and map them to the CPU
|
| 8 |
skin_tone_model = torch.load("SkinTone.pth", map_location=torch.device('cpu'))
|
| 9 |
disease_model = YOLO("last.pt")
|
| 10 |
|