import gradio as gr | |
# Load the model using Gradio's load_model method | |
model = gr.load("models/speechbrain/metricgan-plus-voicebank") | |
# Create an interface for the model with a function | |
iface = gr.Interface(fn=model, inputs="audio", outputs="audio") | |
# Launch the interface | |
iface.launch() | |