Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def inference(video):
|
|
74 |
# Device on which to run the model
|
75 |
# Set to cuda to load on GPU
|
76 |
device = "cpu"
|
77 |
-
model_path = hf_hub_download(repo_id="
|
78 |
# Pick a pretrained model
|
79 |
model = uniformer_small()
|
80 |
state_dict = torch.load(model_path, map_location='cpu')
|
|
|
74 |
# Device on which to run the model
|
75 |
# Set to cuda to load on GPU
|
76 |
device = "cpu"
|
77 |
+
model_path = hf_hub_download(repo_id="Sense-X/uniformer_video", filename="uniformer_small_k400_16x8.pth")
|
78 |
# Pick a pretrained model
|
79 |
model = uniformer_small()
|
80 |
state_dict = torch.load(model_path, map_location='cpu')
|