corfodemo / app.py
sergiolucero's picture
Update app.py
8a7dbd3 verified
raw
history blame
316 Bytes
import gradio as gr
from ailib import whisper_transcribe
def transcribe(audio):
filename = 'audio.wav'
open(filename, 'wb').write(audio)
return whisper_transcribe(filename)
gr.Label("Demo CORFO")
demo = gr.Interface(
transcribe,
gr.Audio(sources=["microphone"]),
"text",
)
demo.launch()