Spaces:
Sleeping
Sleeping
jiangzeyinzi
commited on
update
Browse files
README.md
CHANGED
@@ -16,6 +16,6 @@ preload_from_hub:
|
|
16 |
- openai/clip-vit-large-patch14
|
17 |
- scepter-studio/scepter
|
18 |
- scepter-studio/scepter_scedit
|
19 |
-
- scepter-studio/
|
20 |
- scepter-studio/stylebooth
|
21 |
---
|
|
|
16 |
- openai/clip-vit-large-patch14
|
17 |
- scepter-studio/scepter
|
18 |
- scepter-studio/scepter_scedit
|
19 |
+
- scepter-studio/LARGEN
|
20 |
- scepter-studio/stylebooth
|
21 |
---
|
app.py
CHANGED
@@ -5,14 +5,15 @@ import os
|
|
5 |
# print(f"pip3 uninstall gradio")
|
6 |
# results = os.popen(f"pip3 uninstall gradio -y")
|
7 |
# print(results.readlines())
|
8 |
-
|
9 |
-
|
10 |
results = os.popen(f"pip3 install -r requirements.txt -i https://pypi.org/simple")
|
11 |
print("step1:", results.readlines())
|
12 |
results = os.popen(f"pip3 uninstall scepter -y")
|
13 |
print("step2:", results.readlines())
|
14 |
-
|
15 |
-
|
|
|
16 |
results = os.popen(f"pip3 list")
|
17 |
print("step4:", results.readlines())
|
18 |
#results = os.popen(f"sudo chmod 777 /data")
|
@@ -48,6 +49,7 @@ def link_model():
|
|
48 |
hf_path = os.path.join(hf_root_dir, hf_name)
|
49 |
cmd = f"mkdir -p {ms_path} && ln -s {hf_path}/* {ms_path}"
|
50 |
os.system(cmd)
|
|
|
51 |
|
52 |
link_model()
|
53 |
|
@@ -69,11 +71,11 @@ class TabManager():
|
|
69 |
config_file = os.path.join(os.path.dirname(scepter.dirname), "scepter/methods/studio/scepter_ui.yaml")
|
70 |
config = Config(load=True, cfg_file=config_file)
|
71 |
|
72 |
-
for v in config.FILE_SYSTEM:
|
73 |
-
# v.TEMP_DIR = os.path.join("
|
74 |
# v.TEMP_DIR = os.path.join("/data/.huggingface", v.TEMP_DIR)
|
75 |
-
v.TEMP_DIR = os.path.join("~/.cache/huggingface/hub", v.TEMP_DIR)
|
76 |
-
os.makedirs(v.TEMP_DIR, exist_ok=True)
|
77 |
|
78 |
prepare(config)
|
79 |
|
|
|
5 |
# print(f"pip3 uninstall gradio")
|
6 |
# results = os.popen(f"pip3 uninstall gradio -y")
|
7 |
# print(results.readlines())
|
8 |
+
results = os.popen(f"ls ~/.cache/huggingface/hub")
|
9 |
+
print("step0:", results.readlines())
|
10 |
results = os.popen(f"pip3 install -r requirements.txt -i https://pypi.org/simple")
|
11 |
print("step1:", results.readlines())
|
12 |
results = os.popen(f"pip3 uninstall scepter -y")
|
13 |
print("step2:", results.readlines())
|
14 |
+
scepter_whl = os.environ.get("SCEPTER_WHL","scepter")
|
15 |
+
results = os.popen(f"pip3 install {scepter_whl} -i https://pypi.org/simple")
|
16 |
+
print("step3:", scepter_whl, results.readlines())
|
17 |
results = os.popen(f"pip3 list")
|
18 |
print("step4:", results.readlines())
|
19 |
#results = os.popen(f"sudo chmod 777 /data")
|
|
|
49 |
hf_path = os.path.join(hf_root_dir, hf_name)
|
50 |
cmd = f"mkdir -p {ms_path} && ln -s {hf_path}/* {ms_path}"
|
51 |
os.system(cmd)
|
52 |
+
print(cmd)
|
53 |
|
54 |
link_model()
|
55 |
|
|
|
71 |
config_file = os.path.join(os.path.dirname(scepter.dirname), "scepter/methods/studio/scepter_ui.yaml")
|
72 |
config = Config(load=True, cfg_file=config_file)
|
73 |
|
74 |
+
# for v in config.FILE_SYSTEM:
|
75 |
+
# v.TEMP_DIR = os.path.join("./", v.TEMP_DIR)
|
76 |
# v.TEMP_DIR = os.path.join("/data/.huggingface", v.TEMP_DIR)
|
77 |
+
# v.TEMP_DIR = os.path.join("~/.cache/huggingface/hub", v.TEMP_DIR)
|
78 |
+
# os.makedirs(v.TEMP_DIR, exist_ok=True)
|
79 |
|
80 |
prepare(config)
|
81 |
|