Spaces:
Runtime error
Runtime error
File size: 345 Bytes
527e17f db075c9 527e17f db075c9 527e17f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
from transformers import pipeline
p = pipeline(model="Distay/whisper-tiny")
def transcribe(audio):
text = p(audio)["text"]
return text
gr.Interface(
fn=transcribe,
inputs=gr.Audio(source="microphone", type="filepath"),
outputs="text",live=True,auto_submit=True,
auto_submit_duration=5).launch() |