Spaces:
Runtime error
Runtime error
Updated Helper Functions File
Browse files- helperfunctions.py +0 -2
helperfunctions.py
CHANGED
@@ -95,10 +95,8 @@ def save_translated_subtitles(subtitles, media_path):
|
|
95 |
counter += 1
|
96 |
|
97 |
# Saving SRT content to a .srt file
|
98 |
-
print(media_path)
|
99 |
subtitles_filename = os.path.splitext(media_path)[0]
|
100 |
subtitles_filename = f'{subtitles_filename}.srt'
|
101 |
-
print(subtitles_filename)
|
102 |
with open(subtitles_filename, 'w', encoding='utf-8') as srt_file:
|
103 |
srt_file.write(srt_content)
|
104 |
|
|
|
95 |
counter += 1
|
96 |
|
97 |
# Saving SRT content to a .srt file
|
|
|
98 |
subtitles_filename = os.path.splitext(media_path)[0]
|
99 |
subtitles_filename = f'{subtitles_filename}.srt'
|
|
|
100 |
with open(subtitles_filename, 'w', encoding='utf-8') as srt_file:
|
101 |
srt_file.write(srt_content)
|
102 |
|