Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,3 @@
|
|
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()
|
10 |
|
11 |
import gradio as gr
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
import gradio as gr
|
3 |
|