Spaces:
Running
on
Zero
Running
on
Zero
malvin noel
commited on
Commit
·
8ba85e6
1
Parent(s):
e84ad14
correct import whisper
Browse files
scripts/generate_subtitles.py
CHANGED
@@ -82,7 +82,6 @@ def save_subtitles_to_srt(subtitles, output_path):
|
|
82 |
f.write(f"{format_timestamp(sub['start'])} --> {format_timestamp(sub['end'])}\n")
|
83 |
f.write(f"{sub['text'].strip()}\n\n")
|
84 |
|
85 |
-
@spaces.GPU()
|
86 |
def transcribe_audio_to_subs(audio_path):
|
87 |
"""
|
88 |
Transcrit le fichier audio en texte (via Whisper), retourne la liste
|
|
|
82 |
f.write(f"{format_timestamp(sub['start'])} --> {format_timestamp(sub['end'])}\n")
|
83 |
f.write(f"{sub['text'].strip()}\n\n")
|
84 |
|
|
|
85 |
def transcribe_audio_to_subs(audio_path):
|
86 |
"""
|
87 |
Transcrit le fichier audio en texte (via Whisper), retourne la liste
|