Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -24,15 +24,16 @@ from gradio_demo.utils_drag import *
|
|
24 |
import warnings
|
25 |
print("gr file", gr.__file__)
|
26 |
|
27 |
-
from huggingface_hub import hf_hub_download
|
28 |
os.makedirs("checkpoints", exist_ok=True)
|
29 |
-
|
30 |
"wwen1997/framer_512x320",
|
31 |
local_dir="checkpoints/framer_512x320",
|
32 |
token=os.environ["TOKEN"],
|
33 |
)
|
34 |
|
35 |
|
|
|
36 |
def get_args():
|
37 |
import argparse
|
38 |
parser = argparse.ArgumentParser()
|
|
|
24 |
import warnings
|
25 |
print("gr file", gr.__file__)
|
26 |
|
27 |
+
from huggingface_hub import hf_hub_download, snapshot_download
|
28 |
os.makedirs("checkpoints", exist_ok=True)
|
29 |
+
snapshot_download(
|
30 |
"wwen1997/framer_512x320",
|
31 |
local_dir="checkpoints/framer_512x320",
|
32 |
token=os.environ["TOKEN"],
|
33 |
)
|
34 |
|
35 |
|
36 |
+
|
37 |
def get_args():
|
38 |
import argparse
|
39 |
parser = argparse.ArgumentParser()
|