fountai commited on
Commit
de7a593
·
1 Parent(s): e183d9e

download print

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -8,10 +8,15 @@ import os
8
 
9
  import random
10
  login(os.getenv("HF_TOKEN"))
 
11
  hf_hub_download("black-forest-labs/FLUX.1-dev", "flux1-dev.safetensors")
 
12
  hf_hub_download("XLabs-AI/flux-controlnet-collections", "flux-depth-controlnet.safetensor")
 
13
  hf_hub_download("XLabs-AI/flux-ip-adapter", "flux-ip-adapter.safetensors")
 
14
  hf_hub_download("XLabs-AI/flux-controlnet-canny", "controlnet.safetensors")
 
15
 
16
  @spaces.GPU(duration=300)
17
  def process_image(image, prompt, steps, use_lora, use_controlnet, use_depth, use_hed, use_ip, lora_weight, negative_image, neg_prompt, true_gs, guidance, cfg):
 
8
 
9
  import random
10
  login(os.getenv("HF_TOKEN"))
11
+ print("downloading models - 1/4")
12
  hf_hub_download("black-forest-labs/FLUX.1-dev", "flux1-dev.safetensors")
13
+ print("downloading models - 2/4")
14
  hf_hub_download("XLabs-AI/flux-controlnet-collections", "flux-depth-controlnet.safetensor")
15
+ print("downloading models - 3/4")
16
  hf_hub_download("XLabs-AI/flux-ip-adapter", "flux-ip-adapter.safetensors")
17
+ print("downloading models - 4/4")
18
  hf_hub_download("XLabs-AI/flux-controlnet-canny", "controlnet.safetensors")
19
+ print("downloaded!")
20
 
21
  @spaces.GPU(duration=300)
22
  def process_image(image, prompt, steps, use_lora, use_controlnet, use_depth, use_hed, use_ip, lora_weight, negative_image, neg_prompt, true_gs, guidance, cfg):