Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
# Load the model
|
4 |
-
|
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()
|