Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -156,6 +156,7 @@ hf_token = os.getenv("token")
|
|
156 |
model_path = "/home/user/stable-diffusion-webui/models/Stable-diffusion/flux1-dev.safetensors"
|
157 |
if os.path.exists(model_path):
|
158 |
os.remove(model_path)
|
|
|
159 |
|
160 |
# wget γ§γγ‘γ€γ«γγγ¦γ³γγΌγ
|
161 |
cmd = f'wget --header="Authorization: Bearer {hf_token}" -O {model_path} "https://huggingface.co/black-forest-labs/FLUX.1-dev/resolve/main/flux1-dev.safetensors"'
|
|
|
156 |
model_path = "/home/user/stable-diffusion-webui/models/Stable-diffusion/flux1-dev.safetensors"
|
157 |
if os.path.exists(model_path):
|
158 |
os.remove(model_path)
|
159 |
+
os.system("set COMMANDLINE_ARGS=--skip-torch-cuda-test --no-half --use-cpu all")
|
160 |
|
161 |
# wget γ§γγ‘γ€γ«γγγ¦γ³γγΌγ
|
162 |
cmd = f'wget --header="Authorization: Bearer {hf_token}" -O {model_path} "https://huggingface.co/black-forest-labs/FLUX.1-dev/resolve/main/flux1-dev.safetensors"'
|