Spaces:
Running
on
Zero
Running
on
Zero
update requirements
Browse files- app/down_load_brushedit.py +0 -13
- app/down_load_brushedit.sh +0 -3
- app/run_app.sh +0 -5
app/down_load_brushedit.py
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
from huggingface_hub import snapshot_download
|
3 |
-
|
4 |
-
# download hf models
|
5 |
-
BrushEdit_path = "models/"
|
6 |
-
if not os.path.exists(BrushEdit_path):
|
7 |
-
BrushEdit_path = snapshot_download(
|
8 |
-
repo_id="TencentARC/BrushEdit",
|
9 |
-
local_dir=BrushEdit_path,
|
10 |
-
token=os.getenv("HF_TOKEN"),
|
11 |
-
)
|
12 |
-
|
13 |
-
print("Downloaded BrushEdit to ", BrushEdit_path)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/down_load_brushedit.sh
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
export PYTHONPATH=.:$PYTHONPATH
|
2 |
-
|
3 |
-
python app/down_load_brushedit.py
|
|
|
|
|
|
|
|
app/run_app.sh
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
export PYTHONPATH=.:$PYTHONPATH
|
2 |
-
|
3 |
-
export CUDA_VISIBLE_DEVICES=0
|
4 |
-
|
5 |
-
python app/src/brushedit_app.py
|
|
|
|
|
|
|
|
|
|
|
|