Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
89f1f91
1
Parent(s):
c3fecad
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ from PIL import Image
|
|
13 |
MAX_SEED = np.iinfo(np.int32).max
|
14 |
MAX_IMAGE_SIZE = 2048
|
15 |
|
16 |
-
pipe = FluxFillPipeline.from_pretrained("black-forest-labs/FLUX.1-Fill-dev", torch_dtype=torch.bfloat16
|
17 |
|
18 |
def calculate_optimal_dimensions(image: Image.Image):
|
19 |
# Extract the original dimensions
|
|
|
13 |
MAX_SEED = np.iinfo(np.int32).max
|
14 |
MAX_IMAGE_SIZE = 2048
|
15 |
|
16 |
+
pipe = FluxFillPipeline.from_pretrained("black-forest-labs/FLUX.1-Fill-dev", torch_dtype=torch.bfloat16).to("cuda")
|
17 |
|
18 |
def calculate_optimal_dimensions(image: Image.Image):
|
19 |
# Extract the original dimensions
|