Buckets:

download
raw
565 Bytes
from transformers import pipeline
import gradio as gr
import time
p = pipeline("automatic-speech-recognition")
def transcribe(audio, state=""):
time.sleep(2)
text = p(audio)["text"] # type: ignore
state += text + " " # type: ignore
return state, state
demo = gr.Interface(
fn=transcribe,
inputs=[
gr.Audio(sources=["microphone"], type="filepath", streaming=True),
"state"
],
outputs=[
"textbox",
"state"
],
live=True,
api_name="predict"
)
if __name__ == "__main__":
demo.launch()

Xet Storage Details

Size:
565 Bytes
·
Xet hash:
c5f277b5585178f6a01b63339a43415ee71b9cd5b811947d68a90c21170a35b4

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.