BorisovMaksim commited on
Commit
99682d1
·
1 Parent(s): 8dd2b87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ import torch
15
  def run_app(cfg: DictConfig):
16
  model = Demucs(cfg['model']['demucs'])
17
  model_path = hf_hub_download(repo_id="BorisovMaksim/demucs", filename="Demucs_original_sr_epoch3.pt")
18
- checkpoint = torch.load(model_path)
19
  model.load_state_dict(checkpoint['model_state_dict'])
20
 
21
  def denoising_transform(audio):
 
15
  def run_app(cfg: DictConfig):
16
  model = Demucs(cfg['model']['demucs'])
17
  model_path = hf_hub_download(repo_id="BorisovMaksim/demucs", filename="Demucs_original_sr_epoch3.pt")
18
+ checkpoint = torch.load(model_path, map_location=torch.device('cpu'))
19
  model.load_state_dict(checkpoint['model_state_dict'])
20
 
21
  def denoising_transform(audio):