aliabd HF Staff commited on
Commit
4c72fe1
·
1 Parent(s): 5247c77

Create new file

Browse files
Files changed (1) hide show
  1. app.py +13 -0
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()