Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -322,6 +322,7 @@ def generate_subtitles(audio_file_path, prompt, language, auto_detect_language,
|
|
| 322 |
chunk_path,
|
| 323 |
"-vf",
|
| 324 |
f"subtitles={temp_srt_path}:fontsdir={font_dir}:force_style='Fontname={font_name},Fontsize={int(font_size)},PrimaryColour=&H{font_color[1:]}&,OutlineColour=&H{outline_color[1:]}&,BorderStyle={int(outline_thickness)},Outline=1'",
|
|
|
|
| 325 |
output_file_path,
|
| 326 |
],
|
| 327 |
check=True,
|
|
@@ -402,6 +403,7 @@ def generate_subtitles(audio_file_path, prompt, language, auto_detect_language,
|
|
| 402 |
audio_file_path,
|
| 403 |
"-vf",
|
| 404 |
f"subtitles={temp_srt_path}:fontsdir={font_dir}:force_style='FontName={font_name},Fontsize={int(font_size)},PrimaryColour=&H{font_color[1:]}&,OutlineColour=&H{outline_color[1:]}&,BorderStyle={int(outline_thickness)},Outline=1'",
|
|
|
|
| 405 |
output_file_path,
|
| 406 |
],
|
| 407 |
check=True,
|
|
|
|
| 322 |
chunk_path,
|
| 323 |
"-vf",
|
| 324 |
f"subtitles={temp_srt_path}:fontsdir={font_dir}:force_style='Fontname={font_name},Fontsize={int(font_size)},PrimaryColour=&H{font_color[1:]}&,OutlineColour=&H{outline_color[1:]}&,BorderStyle={int(outline_thickness)},Outline=1'",
|
| 325 |
+
"-preset", "fast",
|
| 326 |
output_file_path,
|
| 327 |
],
|
| 328 |
check=True,
|
|
|
|
| 403 |
audio_file_path,
|
| 404 |
"-vf",
|
| 405 |
f"subtitles={temp_srt_path}:fontsdir={font_dir}:force_style='FontName={font_name},Fontsize={int(font_size)},PrimaryColour=&H{font_color[1:]}&,OutlineColour=&H{outline_color[1:]}&,BorderStyle={int(outline_thickness)},Outline=1'",
|
| 406 |
+
"-preset", "fast",
|
| 407 |
output_file_path,
|
| 408 |
],
|
| 409 |
check=True,
|