Shokoufehhh commited on
Commit
cb43240
·
verified ·
1 Parent(s): 8eac882

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -1,10 +1,7 @@
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", examples=None)
8
 
9
  # Launch the interface
10
  iface.launch()
 
1
  import gradio as gr
2
 
3
+ # Load the model without caching examples
4
+ iface = gr.Interface.load("models/speechbrain/metricgan-plus-voicebank", examples=None)
 
 
 
5
 
6
  # Launch the interface
7
  iface.launch()