marquesafonso
commited on
Update src/transcriber.py
Browse files- src/transcriber.py +1 -1
src/transcriber.py
CHANGED
@@ -48,7 +48,7 @@ def transcriber(file_input:gr.File,
|
|
48 |
task:str,
|
49 |
model_version:str):
|
50 |
|
51 |
-
srt_filepath = os.path.normpath(f"{
|
52 |
if file_input.file_type == "video":
|
53 |
audio_input = convert_video_to_audio(file_input)
|
54 |
else:
|
|
|
48 |
task:str,
|
49 |
model_version:str):
|
50 |
|
51 |
+
srt_filepath = os.path.normpath(f"{file_input.split('.')[0]}.srt")
|
52 |
if file_input.file_type == "video":
|
53 |
audio_input = convert_video_to_audio(file_input)
|
54 |
else:
|