Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from moviepy.editor import ImageSequenceClip
|
|
6 |
from transformers import MusicgenForConditionalGeneration, AutoProcessor
|
7 |
from scipy.io import wavfile
|
8 |
import ffmpeg
|
9 |
-
|
10 |
def generate_video(image, prompt, negative_prompt, video_length):
|
11 |
generator = torch.manual_seed(8888)
|
12 |
device = torch.device("mps" if torch.backends.mps.is_available() else "cpu")
|
|
|
6 |
from transformers import MusicgenForConditionalGeneration, AutoProcessor
|
7 |
from scipy.io import wavfile
|
8 |
import ffmpeg
|
9 |
+
from diffusers import I2VGenXLPipeline
|
10 |
def generate_video(image, prompt, negative_prompt, video_length):
|
11 |
generator = torch.manual_seed(8888)
|
12 |
device = torch.device("mps" if torch.backends.mps.is_available() else "cpu")
|