Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def transcribe_video(video_path):
|
|
19 |
extract_audio(video_path, audio_path)
|
20 |
|
21 |
# Инициализация модели Whisper
|
22 |
-
transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-
|
23 |
|
24 |
# Транскрибация
|
25 |
result = transcriber(audio_path, chunk_length_s=30, return_timestamps=True)
|
|
|
19 |
extract_audio(video_path, audio_path)
|
20 |
|
21 |
# Инициализация модели Whisper
|
22 |
+
transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-medium", device=device)
|
23 |
|
24 |
# Транскрибация
|
25 |
result = transcriber(audio_path, chunk_length_s=30, return_timestamps=True)
|