asp2131 commited on
Commit
2526748
·
verified ·
1 Parent(s): 67694aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -69,10 +69,9 @@ hf_token = os.environ.get("HF_TOKEN")
69
 
70
  # Load the transformer with the token
71
  dit = Flux2Transformer2DModel.from_pretrained(
72
- repo_id,
73
  subfolder="transformer",
74
- torch_dtype=torch.bfloat16,
75
- token=hf_token # <--- CRITICAL ADDITION
76
  )
77
 
78
  # Load the pipeline with the token
 
69
 
70
  # Load the transformer with the token
71
  dit = Flux2Transformer2DModel.from_pretrained(
72
+ "black-forest-labs/FLUX.1-dev",
73
  subfolder="transformer",
74
+ token=os.environ.get("HF_TOKEN"),
 
75
  )
76
 
77
  # Load the pipeline with the token