Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def inference(img):
|
|
34 |
# Device on which to run the model
|
35 |
# Set to cuda to load on GPU
|
36 |
device = "cpu"
|
37 |
-
model_path = hf_hub_download(repo_id="
|
38 |
# Pick a pretrained model
|
39 |
model = uniformer_small()
|
40 |
state_dict = torch.load(model_path, map_location='cpu')
|
|
|
34 |
# Device on which to run the model
|
35 |
# Set to cuda to load on GPU
|
36 |
device = "cpu"
|
37 |
+
model_path = hf_hub_download(repo_id="Sense-X/uniformer_image", filename="uniformer_small_in1k.pth")
|
38 |
# Pick a pretrained model
|
39 |
model = uniformer_small()
|
40 |
state_dict = torch.load(model_path, map_location='cpu')
|