aliabd's picture
aliabd HF Staff
Upload with huggingface_hub
d8e43a5
raw
history blame
533 Bytes
# URL: https://huggingface.co/spaces/gradio/automatic-speech-recognition
# DESCRIPTION: Automatic speech recognition in Chinese and English. Uses a tabbed layout to give the user the choice between uploading audio or recording from a microphone.
# imports
import gradio as gr
# automatically load the interface from a HF model
demo = gr.Interface.load(
"huggingface/facebook/wav2vec2-base-960h",
title="Speech-to-text",
inputs="mic",
description="Let me try to guess what you're saying!",
)
# launch
demo.launch()