SHIURALEFD commited on
Commit
3648942
verified
1 Parent(s): 6eed045

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ # 讟注谉 讗转 讛诪讜讚诇
5
+ model = pipeline('automatic-speech-recognition', model='ivrit-ai/whisper-large-v3-turbo')
6
+
7
+ # 驻讜谞拽爪讬讛 诇转诪诇讜诇
8
+ def transcribe(audio):
9
+ return model(audio)['text']
10
+
11
+ # 爪讜专 讗转 讛诪诪砖拽
12
+ gr.Interface(fn=transcribe, inputs="audio", outputs="text").launch()