Update app.py
Browse files
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()
|