Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|