Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,11 +9,10 @@ pipe = CogVideoXImageToVideoPipeline.from_pretrained(
|
|
| 9 |
torch_dtype=torch.bfloat16
|
| 10 |
)
|
| 11 |
|
| 12 |
-
@spaces.GPU(duration=250)
|
| 13 |
def generate_video(prompt, image):
|
| 14 |
# Ensure the generator is on the same device as the model
|
| 15 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 16 |
-
pipe.to("
|
| 17 |
generator = torch.Generator(device=device).manual_seed(42)
|
| 18 |
|
| 19 |
video = pipe(
|
|
|
|
| 9 |
torch_dtype=torch.bfloat16
|
| 10 |
)
|
| 11 |
|
|
|
|
| 12 |
def generate_video(prompt, image):
|
| 13 |
# Ensure the generator is on the same device as the model
|
| 14 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 15 |
+
pipe.to("cpu")
|
| 16 |
generator = torch.Generator(device=device).manual_seed(42)
|
| 17 |
|
| 18 |
video = pipe(
|