anupam_speech / app.py
gradioapp's picture
Create app.py
5782555
raw
history blame
No virus
248 Bytes
from transformers import pipeline
def transcribe(audio):
text = p(audio)["text"]
return text
import gradio as gr
gr.Interface(
fn=transcribe,
inputs=gr.Audio(source="microphone", type="filepath"),
outputs="text").launch()