Hendrik Schroeter commited on
Commit
63cd8f7
1 Parent(s): fe04ae7

Fall back to lokal df2 model

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ from df.enhance import enhance, init_df, load_audio, save_audio
19
  from df.io import resample
20
 
21
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
22
- model, df, _ = init_df(config_allow_defaults=True)
23
  model = model.to(device=device).eval()
24
 
25
  fig_noisy: plt.Figure
 
19
  from df.io import resample
20
 
21
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
22
+ model, df, _ = init_df("./DeepFilterNet2", config_allow_defaults=True)
23
  model = model.to(device=device).eval()
24
 
25
  fig_noisy: plt.Figure