File size: 389 Bytes
35f8a26 13268f4 35f8a26 0c0df10 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import gradio as gr
from transformers import pipeline
# Define the pipeline for speech recognition with the NeMo Canary model
pipe = pipeline(
task="automatic-speech-recognition",
model="nvidia/canary-1b"
)
# Create a Gradio interface from the pipeline
interface = gr.Interface.from_pipeline(pipe, inputs="microphone", outputs="text")
# Launch the interface
interface.launch()
|