Spaces:
Running
on
Zero
Running
on
Zero
BoyuanJiang
commited on
Commit
·
0945694
1
Parent(s):
c3b59c9
update
Browse files
app.py
CHANGED
@@ -20,9 +20,9 @@ from huggingface_hub import snapshot_download
|
|
20 |
|
21 |
example_path = os.path.join(os.path.dirname(__file__), 'examples')
|
22 |
|
23 |
-
access_token = os.getenv("
|
24 |
fitdit_repo = "BoyuanJiang/FitDiT"
|
25 |
-
repo_path = snapshot_download(repo_id=fitdit_repo)
|
26 |
|
27 |
class FitDiTGenerator:
|
28 |
def __init__(self, model_root, device="cuda", with_fp16=False):
|
|
|
20 |
|
21 |
example_path = os.path.join(os.path.dirname(__file__), 'examples')
|
22 |
|
23 |
+
access_token = os.getenv("HF_TOKEN")
|
24 |
fitdit_repo = "BoyuanJiang/FitDiT"
|
25 |
+
repo_path = snapshot_download(repo_id=fitdit_repo, use_auth_token=access_token)
|
26 |
|
27 |
class FitDiTGenerator:
|
28 |
def __init__(self, model_root, device="cuda", with_fp16=False):
|