Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
-
print("Загрузка модели...")
|
| 5 |
pipe = pipeline(
|
| 6 |
"automatic-speech-recognition",
|
| 7 |
model="Drahokma/whisper-large-v3-kz",
|
| 8 |
device="cpu"
|
| 9 |
)
|
| 10 |
-
print("Модель загружена!")
|
| 11 |
|
| 12 |
def transcribe(audio_path):
|
| 13 |
if audio_path is None:
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
|
|
|
| 4 |
pipe = pipeline(
|
| 5 |
"automatic-speech-recognition",
|
| 6 |
model="Drahokma/whisper-large-v3-kz",
|
| 7 |
device="cpu"
|
| 8 |
)
|
|
|
|
| 9 |
|
| 10 |
def transcribe(audio_path):
|
| 11 |
if audio_path is None:
|