gradioapp commited on
Commit
5782555
1 Parent(s): 0a0380f

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+ def transcribe(audio):
3
+ text = p(audio)["text"]
4
+ return text
5
+
6
+ import gradio as gr
7
+ gr.Interface(
8
+ fn=transcribe,
9
+ inputs=gr.Audio(source="microphone", type="filepath"),
10
+ outputs="text").launch()