Spaces:
Runtime error
Runtime error
Create app.py
Browse files
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()
|