Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from diffusers.utils import export_to_video
|
|
| 6 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 7 |
#model = gr.Interface.load("models/camenduru/text2_video_zero")
|
| 8 |
# load pipeline
|
| 9 |
-
pipe = DiffusionPipeline.from_pretrained("camenduru/
|
| 10 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
| 11 |
#if device == "cuda":
|
| 12 |
# optimize for GPU memory
|
|
|
|
| 6 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 7 |
#model = gr.Interface.load("models/camenduru/text2_video_zero")
|
| 8 |
# load pipeline
|
| 9 |
+
pipe = DiffusionPipeline.from_pretrained("camenduru/text2-video-zero").to(device)
|
| 10 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
| 11 |
#if device == "cuda":
|
| 12 |
# optimize for GPU memory
|