Spaces:
Sleeping
Sleeping
File size: 359 Bytes
c7824eb d3e5066 c7824eb 7c2b7bd 9c50f27 a5066a5 860202f 01ed9c5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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()
|