Spaces:
Runtime error
Runtime error
update
Browse files15 unmodified lines16171819202115 unmodified lines- openai/clip-vit-large-patch14- scepter-studio/scepter- scepter-studio/scepter_scedit- scepter-studio/LAR-Gen- scepter-studio/stylebooth---15 unmodified lines16171819202115 unmodified lines- openai/clip-vit-large-patch14- scepter-studio/scepter- scepter-studio/scepter_scedit- scepter-studio/LARGEN- scepter-studio/stylebooth---
4 unmodified lines5678910111213141516171829 unmodified lines48495051525315 unmodified lines69707172737475767778794 unmodified lines# print(f"pip3 uninstall gradio")# results = os.popen(f"pip3 uninstall gradio -y")# print(results.readlines())# results = os.popen(f"ls -lR ~/.cache/huggingface/hub")# print("step0:", results.readlines())results = os.popen(f"pip3 install -r requirements.txt -i https://pypi.org/simple")print("step1:", results.readlines())results = os.popen(f"pip3 uninstall scepter -y")print("step2:", results.readlines())results = os.popen(f"pip3 install scepter -i https://pypi.org/simple")print("step3:", results.readlines())results = os.popen(f"pip3 list")print("step4:", results.readlines())#results = os.popen(f"sudo chmod 777 /data")29 unmodified lineshf_path = os.path.join(hf_root_dir, hf_name)cmd = f"mkdir -p {ms_path} && ln -s {hf_path}/* {ms_path}"os.system(cmd)link_model()15 unmodified linesconfig_file = os.path.join(os.path.dirname(scepter.dirname), "scepter/methods/studio/scepter_ui.yaml")config = Config(load=True, cfg_file=config_file)for v in config.FILE_SYSTEM:# v.TEMP_DIR = os.path.join("/home", v.TEMP_DIR)# v.TEMP_DIR = os.path.join("/data/.huggingface", v.TEMP_DIR)v.TEMP_DIR = os.path.join("~/.cache/huggingface/hub", v.TEMP_DIR)os.makedirs(v.TEMP_DIR, exist_ok=True)prepare(config)4 unmodified lines567891011121314151617181929 unmodified lines4950515253545515 unmodified lines71727374757677787980814 unmodified lines# print(f"pip3 uninstall gradio")# results = os.popen(f"pip3 uninstall gradio -y")# print(results.readlines())results = os.popen(f"ls ~/.cache/huggingface/hub")print("step0:", results.readlines())results = os.popen(f"pip3 install -r requirements.txt -i https://pypi.org/simple")print("step1:", results.readlines())results = os.popen(f"pip3 uninstall scepter -y")print("step2:", results.readlines())scepter_whl = os.environ.get("SCEPTER_WHL","scepter")results = os.popen(f"pip3 install {scepter_whl} -i https://pypi.org/simple")print("step3:", scepter_whl, results.readlines())results = os.popen(f"pip3 list")print("step4:", results.readlines())#results = os.popen(f"sudo chmod 777 /data")29 unmodified lineshf_path = os.path.join(hf_root_dir, hf_name)cmd = f"mkdir -p {ms_path} && ln -s {hf_path}/* {ms_path}"os.system(cmd)print(cmd)link_model()15 unmodified linesconfig_file = os.path.join(os.path.dirname(scepter.dirname), "scepter/methods/studio/scepter_ui.yaml")config = Config(load=True, cfg_file=config_file)# for v in config.FILE_SYSTEM:# v.TEMP_DIR = os.path.join("./", v.TEMP_DIR)# v.TEMP_DIR = os.path.join("/data/.huggingface", v.TEMP_DIR)# v.TEMP_DIR = os.path.join("~/.cache/huggingface/hub", v.TEMP_DIR)# os.makedirs(v.TEMP_DIR, exist_ok=True)prepare(config)
README.md+1-1
app.py+10-8