1littlecoder commited on
Commit
b547fb9
·
verified ·
1 Parent(s): daf0716

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,5 +1,10 @@
1
  import gradio as gr
2
  from moviepy.editor import AudioFileClip, ImageClip, CompositeVideoClip
 
 
 
 
 
3
 
4
  def create_video(image, audio):
5
  # Load the audio file
 
1
  import gradio as gr
2
  from moviepy.editor import AudioFileClip, ImageClip, CompositeVideoClip
3
+ from PIL import Image
4
+
5
+ # Ensure compatibility with updated PIL library
6
+ if not hasattr(Image, 'ANTIALIAS'): # Image.ANTIALIAS is deprecated; LANCZOS is the replacement
7
+ Image.ANTIALIAS = Image.LANCZOS
8
 
9
  def create_video(image, audio):
10
  # Load the audio file