Shokoufehhh commited on
Commit
512b9f3
·
verified ·
1 Parent(s): 930aa22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,4 +1,10 @@
1
-
2
  import gradio as gr
3
 
4
- gr.Interface.load("models/speechbrain/metricgan-plus-voicebank").launch()
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ # Load the model using Gradio's load_model method
4
+ model = gr.load("models/speechbrain/metricgan-plus-voicebank")
5
+
6
+ # Create an interface for the model with a function
7
+ iface = gr.Interface(fn=model, inputs="audio", outputs="audio")
8
+
9
+ # Launch the interface
10
+ iface.launch()