gokaygokay commited on
Commit
ac745b0
1 Parent(s): 68036b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ dtype = torch.bfloat16
14
  huggingface_token = os.getenv("HUGGINGFACE_TOKEN")
15
 
16
  # FLUX.1-dev model
17
- pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype).to(device)
18
 
19
  # Initialize Florence model
20
  florence_model = AutoModelForCausalLM.from_pretrained('microsoft/Florence-2-base', trust_remote_code=True).to(device).eval()
 
14
  huggingface_token = os.getenv("HUGGINGFACE_TOKEN")
15
 
16
  # FLUX.1-dev model
17
+ pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, token = huggingface_token).to(device)
18
 
19
  # Initialize Florence model
20
  florence_model = AutoModelForCausalLM.from_pretrained('microsoft/Florence-2-base', trust_remote_code=True).to(device).eval()