Spaces:
Runtime error
Runtime error
Create new file
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# URL: https://huggingface.co/spaces/gradio/automatic-speech-recognition
|
2 |
+
import gradio as gr
|
3 |
+
|
4 |
+
# automatically load the interface from a HF model
|
5 |
+
stt_demo = gr.Interface.load(
|
6 |
+
"huggingface/facebook/wav2vec2-base-960h",
|
7 |
+
title="Speech-to-text",
|
8 |
+
inputs="mic",
|
9 |
+
description="Let me try to guess what you're saying!",
|
10 |
+
)
|
11 |
+
|
12 |
+
# launch
|
13 |
+
demo.launch()
|