soiz1 commited on
Commit
eb9c53c
·
verified ·
1 Parent(s): e7f3064

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -151,6 +151,13 @@ DownLoad(r"https://civitai.com/api/download/models/39164",str(user_home / r"stab
151
 
152
  # Flux モデルの URL を指定
153
  flux_model_url = "https://huggingface.co/black-forest-labs/FLUX.1-dev/resolve/main/flux1-dev.safetensors"
 
 
 
 
 
 
 
154
  flux_model_path = model_dir / "flux1-dev.safetensors"
155
 
156
  # モデルをダウンロード(まだ存在しない場合のみ)
 
151
 
152
  # Flux モデルの URL を指定
153
  flux_model_url = "https://huggingface.co/black-forest-labs/FLUX.1-dev/resolve/main/flux1-dev.safetensors"
154
+
155
+ # Stable Diffusion WebUI のディレクトリを設定
156
+ webui_dir = user_home / "stable-diffusion-webui"
157
+
158
+ # モデルの保存先を絶対パスで設定
159
+ model_dir = webui_dir / "models" / "Stable-diffusion"
160
+
161
  flux_model_path = model_dir / "flux1-dev.safetensors"
162
 
163
  # モデルをダウンロード(まだ存在しない場合のみ)