Spaces:
Sleeping
Sleeping
from transformers import pipeline | |
import gradio as gr | |
pipe = pipeline(model="PatrickML/whisper_small_yt") | |
def transcribe(audio): | |
text = pipe(audio)["text"] | |
return text | |
mic = gr.Audio(source="microphone", type="filepath", label="Speak here...") | |
iface = gr.Interface(transcribe,mic,"text").launch() | |