Niko-NN commited on
Commit
c881587
1 Parent(s): 1e0a804

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-base", device=device)
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)