Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ def setup_models():
|
|
14 |
os.makedirs("ckpts", exist_ok=True)
|
15 |
|
16 |
try:
|
17 |
-
|
18 |
-
|
19 |
# 下载HunyuanVideo模型
|
20 |
hunyuan_path = Path("ckpts/hunyuan-video-t2v-720p")
|
21 |
if not hunyuan_path.exists():
|
|
|
14 |
os.makedirs("ckpts", exist_ok=True)
|
15 |
|
16 |
try:
|
17 |
+
if torch.cuda.is_available():
|
18 |
+
#if True:
|
19 |
# 下载HunyuanVideo模型
|
20 |
hunyuan_path = Path("ckpts/hunyuan-video-t2v-720p")
|
21 |
if not hunyuan_path.exists():
|