Flulike99 commited on
Commit
98f0b25
·
1 Parent(s): e2ca221
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -61,15 +61,19 @@ def init_pipeline_if_needed():
61
  "sayakpaul/flux.1-schell-int8wo-improved",
62
  torch_dtype=torch.bfloat16,
63
  use_safetensors=False,
 
64
  )
65
  _pipe = FluxPipeline.from_pretrained(
66
  "black-forest-labs/FLUX.1-schnell",
67
  transformer=transformer_model,
68
  torch_dtype=torch.bfloat16,
 
69
  )
70
  else:
71
  _pipe = FluxPipeline.from_pretrained(
72
- "black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16
 
 
73
  )
74
 
75
  _pipe = _pipe.to("cuda")
 
61
  "sayakpaul/flux.1-schell-int8wo-improved",
62
  torch_dtype=torch.bfloat16,
63
  use_safetensors=False,
64
+ token=hf_token,
65
  )
66
  _pipe = FluxPipeline.from_pretrained(
67
  "black-forest-labs/FLUX.1-schnell",
68
  transformer=transformer_model,
69
  torch_dtype=torch.bfloat16,
70
+ token=hf_token,
71
  )
72
  else:
73
  _pipe = FluxPipeline.from_pretrained(
74
+ "black-forest-labs/FLUX.1-schnell",
75
+ torch_dtype=torch.bfloat16,
76
+ token=hf_token,
77
  )
78
 
79
  _pipe = _pipe.to("cuda")