Skip to content

Commit

Permalink
Fix: Deployment device problem
Browse files Browse the repository at this point in the history
  • Loading branch information
marwan2232004 committed Oct 12, 2024
1 parent dba6e0b commit 6dc6fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def predict(audio_file):
dim_feedforward=2048,
)

model.load_state_dict(torch.load(model_path, weights_only=True))
model.load_state_dict(torch.load(model_path, weights_only=False))
model.to(device)
model.eval()

Expand Down

0 comments on commit 6dc6fd8

Please sign in to comment.