PatrickML's picture
Update app.py
b15355c
raw
history blame contribute delete
No virus
315 Bytes
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()