bdsqlsz commited on
Commit
e822a67
·
verified ·
1 Parent(s): 18e29bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -30,9 +30,9 @@ class timer:
30
  if not path.exists(cache_path):
31
  os.makedirs(cache_path, exist_ok=True)
32
 
33
- pipe = FluxPipeline.from_pretrained("https://huggingface.co/bdsqlsz/Hyper-Flux1-dev/blob/main/Hyper-flux1-dev.safetensors", torch_dtype=torch.bfloat16)
34
- #pipe.load_lora_weights(hf_hub_download("bdsqlsz/Hyper-Flux1-dev", "Hyper-FLUX.1-dev-8steps-lora_rank1.safetensors"))
35
- #pipe.fuse_lora(lora_scale=0.6)
36
  pipe.to(device="cuda", dtype=torch.bfloat16)
37
 
38
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
 
30
  if not path.exists(cache_path):
31
  os.makedirs(cache_path, exist_ok=True)
32
 
33
+ pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
34
+ pipe.load_lora_weights(hf_hub_download("bdsqlsz/Hyper-Flux1-dev", "Hyper-FLUX.1-dev-8steps-lora_rank1.safetensors"))
35
+ pipe.fuse_lora(lora_scale=0.3)
36
  pipe.to(device="cuda", dtype=torch.bfloat16)
37
 
38
  with gr.Blocks(theme=gr.themes.Soft()) as demo: