Spaces:
Running
on
Zero
Running
on
Zero
gokaygokay
commited on
Commit
•
7518724
1
Parent(s):
521472f
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import spaces
|
2 |
import os
|
3 |
import warnings
|
4 |
-
from huggingface_hub import
|
5 |
import gradio as gr
|
6 |
from glob import glob
|
7 |
import shutil
|
@@ -23,7 +23,7 @@ def download_models():
|
|
23 |
|
24 |
# Download Hunyuan3D-1 model
|
25 |
try:
|
26 |
-
|
27 |
repo_id="tencent/Hunyuan3D-1",
|
28 |
local_dir="./weights",
|
29 |
resume_download=True
|
@@ -34,7 +34,7 @@ def download_models():
|
|
34 |
|
35 |
# Download HunyuanDiT model
|
36 |
try:
|
37 |
-
|
38 |
repo_id="Tencent-Hunyuan/HunyuanDiT-v1.1-Diffusers-Distilled",
|
39 |
local_dir="./weights/hunyuanDiT",
|
40 |
resume_download=True
|
|
|
1 |
import spaces
|
2 |
import os
|
3 |
import warnings
|
4 |
+
from huggingface_hub import snapshot_download
|
5 |
import gradio as gr
|
6 |
from glob import glob
|
7 |
import shutil
|
|
|
23 |
|
24 |
# Download Hunyuan3D-1 model
|
25 |
try:
|
26 |
+
snapshot_download(
|
27 |
repo_id="tencent/Hunyuan3D-1",
|
28 |
local_dir="./weights",
|
29 |
resume_download=True
|
|
|
34 |
|
35 |
# Download HunyuanDiT model
|
36 |
try:
|
37 |
+
snapshot_download(
|
38 |
repo_id="Tencent-Hunyuan/HunyuanDiT-v1.1-Diffusers-Distilled",
|
39 |
local_dir="./weights/hunyuanDiT",
|
40 |
resume_download=True
|