Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ model_file = hf_hub_download(repo_id="Muinez/Image-scorer", filename="scorer.pth
|
|
32 |
|
33 |
DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
|
34 |
model = ScoreClassifier().to(DEVICE)
|
35 |
-
model.load_state_dict(torch.load(
|
36 |
model.eval()
|
37 |
|
38 |
processor = SiglipImageProcessor.from_pretrained('google/siglip-base-patch16-512')
|
|
|
32 |
|
33 |
DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
|
34 |
model = ScoreClassifier().to(DEVICE)
|
35 |
+
model.load_state_dict(torch.load(model_file))
|
36 |
model.eval()
|
37 |
|
38 |
processor = SiglipImageProcessor.from_pretrained('google/siglip-base-patch16-512')
|