Bagda commited on
Commit
219536e
·
verified ·
1 Parent(s): 904a6d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+
3
+ asr = pipeline("automatic-speech-recognition", model="ZeeshanGeoPk/haitian-speech-to-text")
4
+
5
+ def transcribe(audio):
6
+ return asr(audio)["text"]
7
+
8
+ import gradio as gr
9
+ gr.Interface(fn=transcribe, inputs=gr.Audio(type="filepath"), outputs="text").launch()