Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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()
|