Spaces:
Runtime error
Runtime error
debug hf_hub_download
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ from huggingface_hub import hf_hub_download
|
|
13 |
# Set to cuda to load on GPU
|
14 |
device = "cpu"
|
15 |
# os.system("wget https://cdn-lfs.huggingface.co/Andy1621/uniformer/fd192c31f8bd77670de8f171111bd51f56fd87e6aea45043ab2edc181e1fa775")
|
16 |
-
model_path = hf_hub_download(repo_id="https://huggingface.co/Andy1621/uniformer", filename="uniformer_small_in1k.pth")
|
17 |
# Pick a pretrained model
|
18 |
model = uniformer_small()
|
19 |
# state_dict = torch.load('fd192c31f8bd77670de8f171111bd51f56fd87e6aea45043ab2edc181e1fa775', map_location='cpu')
|
|
|
13 |
# Set to cuda to load on GPU
|
14 |
device = "cpu"
|
15 |
# os.system("wget https://cdn-lfs.huggingface.co/Andy1621/uniformer/fd192c31f8bd77670de8f171111bd51f56fd87e6aea45043ab2edc181e1fa775")
|
16 |
+
model_path = hf_hub_download(repo_id="https://huggingface.co/Andy1621/uniformer", filename="uniformer_small_in1k.pth", revision="main")
|
17 |
# Pick a pretrained model
|
18 |
model = uniformer_small()
|
19 |
# state_dict = torch.load('fd192c31f8bd77670de8f171111bd51f56fd87e6aea45043ab2edc181e1fa775', map_location='cpu')
|