Shokoufehhh commited on
Commit
ae1f859
·
verified ·
1 Parent(s): 11f1f6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import gradio as gr
2
- from speechbrain.pretrained import MetricGAN
3
 
4
  # Load the MetricGAN model from Hugging Face
5
  model = MetricGAN.from_hparams(source="speechbrain/metricgan-plus-voicebank", savedir="tmpdir_metricgan")
@@ -21,3 +21,4 @@ iface = gr.Interface(
21
 
22
  # Launch the Gradio interface
23
  iface.launch()
 
 
1
  import gradio as gr
2
+ from speechbrain.inference import MetricGAN
3
 
4
  # Load the MetricGAN model from Hugging Face
5
  model = MetricGAN.from_hparams(source="speechbrain/metricgan-plus-voicebank", savedir="tmpdir_metricgan")
 
21
 
22
  # Launch the Gradio interface
23
  iface.launch()
24
+