polu commited on
Commit
f1f25a8
1 Parent(s): d3260f5
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -30,10 +30,11 @@ class timer:
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("RED-AIGC/TDD", "TDD-FLUX.1-dev-lora-beta.safetensors"))
35
  pipe.fuse_lora(lora_scale=0.125)
36
- pipe.to(device="cuda", dtype=torch.bfloat16)
 
37
 
38
  css = """
39
  h1 {
 
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")
34
  pipe.load_lora_weights(hf_hub_download("RED-AIGC/TDD", "TDD-FLUX.1-dev-lora-beta.safetensors"))
35
  pipe.fuse_lora(lora_scale=0.125)
36
+ pipe.to(dtype=torch.float16)
37
+ pipe.to("cuda")
38
 
39
  css = """
40
  h1 {