Spaces:
Running
Running
Arnab Das
commited on
Commit
·
ffe0082
1
Parent(s):
736efbe
bug fix
Browse files
manipulate_model/utils.py
CHANGED
@@ -19,7 +19,7 @@ def get_config_and_model(model_root="manipulate_model/demo-model/audio"):
|
|
19 |
config.model.decoder = OmegaConf.load(config.model.decoder)
|
20 |
|
21 |
model = Model(config=config)
|
22 |
-
model_file = hf_hub_download("arnabdas8901/manipulation_detection_transformer")
|
23 |
print(model_file)
|
24 |
#weights = torch.load(os.path.join(model_root, "weights.pt"))
|
25 |
#model.load_state_dict(weights["model_state_dict"])
|
|
|
19 |
config.model.decoder = OmegaConf.load(config.model.decoder)
|
20 |
|
21 |
model = Model(config=config)
|
22 |
+
model_file = hf_hub_download("arnabdas8901/manipulation_detection_transformer", filename= "weights.pt")
|
23 |
print(model_file)
|
24 |
#weights = torch.load(os.path.join(model_root, "weights.pt"))
|
25 |
#model.load_state_dict(weights["model_state_dict"])
|