Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ pipe = MatrixGameWanModularPipeline(blocks, "diffusers/matrix-game-2-modular")
|
|
| 36 |
pipe.load_components(trust_remote_code=True, device_map="cuda", torch_dtype={"default": torch.bfloat16, "vae": torch.float32})
|
| 37 |
|
| 38 |
@spaces.GPU(duration=120)
|
| 39 |
-
def predict():
|
| 40 |
output = pipe(image=image, prompt=prompt, num_frames=141)
|
| 41 |
return export_to_video(output.values['videos'][0], "output.mp4")
|
| 42 |
|
|
|
|
| 36 |
pipe.load_components(trust_remote_code=True, device_map="cuda", torch_dtype={"default": torch.bfloat16, "vae": torch.float32})
|
| 37 |
|
| 38 |
@spaces.GPU(duration=120)
|
| 39 |
+
def predict(image, prompt):
|
| 40 |
output = pipe(image=image, prompt=prompt, num_frames=141)
|
| 41 |
return export_to_video(output.values['videos'][0], "output.mp4")
|
| 42 |
|