younes21000 commited on
Commit
de02c8e
·
verified ·
1 Parent(s): 934042e

Update app.py

Browse files

fixing download video part

Files changed (1) hide show
  1. app.py +1 -1
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
- # Simulated subtitle time intervals for simplicity (assumes 5 seconds per subtitle)
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