Collapseruin's picture
Update app.py
9c50f27
from transformers import pipeline
import gradio as gr
pipe = pipeline(model="Puyao/whisper-small-hi")
# gr.load("models/puyao/whisper-small-hi").launch()
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()