Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -413,7 +413,7 @@ def create_subtitle_clip_pil(text, start_time, end_time, video_width, video_heig
|
|
413 |
y += line_heights[idx] + 5
|
414 |
|
415 |
img_np = np.array(img)
|
416 |
-
txt_clip = ImageClip(img_np).set_start(start_time).set_duration(end_time - start_time).set_position(lambda clip: ("center", video_height - clip.
|
417 |
return txt_clip
|
418 |
|
419 |
except Exception as e:
|
|
|
413 |
y += line_heights[idx] + 5
|
414 |
|
415 |
img_np = np.array(img)
|
416 |
+
txt_clip = ImageClip(img_np).set_start(start_time).set_duration(end_time - start_time).set_position(lambda clip: ("center", video_height - clip.size[1] - int(video_height * 0.05))).set_opacity(0.9)
|
417 |
return txt_clip
|
418 |
|
419 |
except Exception as e:
|