Spaces:
PlayHT
/
Running on CPU Upgrade

1littlecoder commited on
Commit
7ce7a4f
·
verified ·
1 Parent(s): 0d84bf6

getting the logo center

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -90,7 +90,7 @@ def create_video(image, audio):
90
 
91
  # Load the logo image, resize it, and position it in the top-right corner
92
  logo = ImageClip("Logo.png").resize(height=100) # Adjust the height as needed
93
- logo = logo.set_position(("right", "top")).set_duration(audio_clip.duration)
94
 
95
  # Create a composite video with the main image and the logo overlay
96
  video_clip = CompositeVideoClip([image_clip, logo]).set_audio(audio_clip)
 
90
 
91
  # Load the logo image, resize it, and position it in the top-right corner
92
  logo = ImageClip("Logo.png").resize(height=100) # Adjust the height as needed
93
+ logo = logo.set_position(("center", "bottom")).set_duration(audio_clip.duration)
94
 
95
  # Create a composite video with the main image and the logo overlay
96
  video_clip = CompositeVideoClip([image_clip, logo]).set_audio(audio_clip)