Spaces:
Sleeping
Sleeping
Update app.py
Browse filesfixing download video part
app.py
CHANGED
@@ -122,7 +122,7 @@ def download_video():
|
|
122 |
# Function to generate subtitle text
|
123 |
generator = lambda txt: TextClip(txt, font='Arial', fontsize=24, color='white')
|
124 |
|
125 |
-
#
|
126 |
subs = [(i * 5, translated_subtitle[i:i+50]) for i in range(0, len(translated_subtitle), 50)]
|
127 |
|
128 |
# Create subtitle clips
|
|
|
122 |
# Function to generate subtitle text
|
123 |
generator = lambda txt: TextClip(txt, font='Arial', fontsize=24, color='white')
|
124 |
|
125 |
+
# Generate subtitles (assuming each subtitle appears for 5 seconds)
|
126 |
subs = [(i * 5, translated_subtitle[i:i+50]) for i in range(0, len(translated_subtitle), 50)]
|
127 |
|
128 |
# Create subtitle clips
|