Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import torch
|
|
3 |
from diffusers import DiffusionPipeline
|
4 |
|
5 |
# 使用另一個更穩定的模型
|
6 |
-
pipe = DiffusionPipeline.from_pretrained("
|
7 |
pipe = pipe.to("cuda" if torch.cuda.is_available() else "cpu")
|
8 |
|
9 |
# 定義生成視頻的函數
|
|
|
3 |
from diffusers import DiffusionPipeline
|
4 |
|
5 |
# 使用另一個更穩定的模型
|
6 |
+
pipe = DiffusionPipeline.from_pretrained("cerspense/zeroscope_v2_576w", torch_dtype=torch.float32)
|
7 |
pipe = pipe.to("cuda" if torch.cuda.is_available() else "cpu")
|
8 |
|
9 |
# 定義生成視頻的函數
|