Spaces:
Running
Running
Update apps/gradio_app/setup_scripts.py
Browse files
apps/gradio_app/setup_scripts.py
CHANGED
|
@@ -34,10 +34,6 @@ def main():
|
|
| 34 |
"""
|
| 35 |
scripts_dir = "scripts"
|
| 36 |
scripts = [
|
| 37 |
-
{
|
| 38 |
-
"path": os.path.join(scripts_dir, "setup_third_party.py"),
|
| 39 |
-
"args": None
|
| 40 |
-
},
|
| 41 |
{
|
| 42 |
"path": os.path.join(scripts_dir, "download_ckpts.py"),
|
| 43 |
"args": [
|
|
@@ -45,9 +41,14 @@ def main():
|
|
| 45 |
"--local_dir", "./ckpts",
|
| 46 |
"--pruning_model"
|
| 47 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
}
|
|
|
|
| 49 |
]
|
| 50 |
-
|
| 51 |
for script in scripts:
|
| 52 |
script_path = script["path"]
|
| 53 |
args = script["args"]
|
|
|
|
| 34 |
"""
|
| 35 |
scripts_dir = "scripts"
|
| 36 |
scripts = [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
{
|
| 38 |
"path": os.path.join(scripts_dir, "download_ckpts.py"),
|
| 39 |
"args": [
|
|
|
|
| 41 |
"--local_dir", "./ckpts",
|
| 42 |
"--pruning_model"
|
| 43 |
]
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"path": os.path.join(scripts_dir, "setup_third_party.py"),
|
| 47 |
+
"args": None
|
| 48 |
}
|
| 49 |
+
|
| 50 |
]
|
| 51 |
+
|
| 52 |
for script in scripts:
|
| 53 |
script_path = script["path"]
|
| 54 |
args = script["args"]
|