aliabd's picture
aliabd HF Staff
Update app.py
37f640c
raw
history blame
594 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
auth_token = os.getenv("auth_token")
# 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!",
api_key=auth_token
)
# launch
demo.launch()