jamesliu1217 commited on
Commit
411cd1a
·
verified ·
1 Parent(s): cfb0d74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ style_lora_base_path = "Shakker-Labs"
21
  pipe = FluxPipeline.from_pretrained(base_path, torch_dtype=torch.bfloat16)
22
  transformer = FluxTransformer2DModel.from_pretrained(base_path, subfolder="transformer", torch_dtype=torch.bfloat16)
23
  pipe.transformer = transformer
24
- pipe.to(device)
25
 
26
  def clear_cache(transformer):
27
  for name, attn_processor in transformer.attn_processors.items():
 
21
  pipe = FluxPipeline.from_pretrained(base_path, torch_dtype=torch.bfloat16)
22
  transformer = FluxTransformer2DModel.from_pretrained(base_path, subfolder="transformer", torch_dtype=torch.bfloat16)
23
  pipe.transformer = transformer
24
+ pipe.to("cuda")
25
 
26
  def clear_cache(transformer):
27
  for name, attn_processor in transformer.attn_processors.items():