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