Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ with open('loras.json', 'r') as f:
|
|
| 32 |
|
| 33 |
# Initialize the base model with authentication and specify the device
|
| 34 |
# Initialize the base model with authentication and specify the device
|
| 35 |
-
pipe = DiffusionPipeline.from_pretrained("sayakpaul/FLUX.1-merged", torch_dtype=dtype, token=hf_token, trust_remote_code=True, device_map='balanced').to(
|
| 36 |
|
| 37 |
MAX_SEED = np.iinfo(np.int32).max
|
| 38 |
MAX_IMAGE_SIZE = 2048
|
|
|
|
| 32 |
|
| 33 |
# Initialize the base model with authentication and specify the device
|
| 34 |
# Initialize the base model with authentication and specify the device
|
| 35 |
+
pipe = DiffusionPipeline.from_pretrained("sayakpaul/FLUX.1-merged", torch_dtype=dtype, token=hf_token, trust_remote_code=True, device_map='balanced').to(device)
|
| 36 |
|
| 37 |
MAX_SEED = np.iinfo(np.int32).max
|
| 38 |
MAX_IMAGE_SIZE = 2048
|