Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,12 +8,13 @@ import random
|
|
8 |
# Initialize the base model and specific LoRA
|
9 |
base_model = "black-forest-labs/FLUX.1-dev"
|
10 |
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
11 |
-
pipe.to("cuda")
|
12 |
|
13 |
lora_repo = "XLabs-AI/flux-RealismLora"
|
14 |
trigger_word = "" # Leave trigger_word blank if not used.
|
15 |
pipe.load_lora_weights(lora_repo)
|
16 |
|
|
|
|
|
17 |
MAX_SEED = 2**32-1
|
18 |
|
19 |
@spaces.GPU(duration=80)
|
|
|
8 |
# Initialize the base model and specific LoRA
|
9 |
base_model = "black-forest-labs/FLUX.1-dev"
|
10 |
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
|
|
11 |
|
12 |
lora_repo = "XLabs-AI/flux-RealismLora"
|
13 |
trigger_word = "" # Leave trigger_word blank if not used.
|
14 |
pipe.load_lora_weights(lora_repo)
|
15 |
|
16 |
+
pipe.to("cuda")
|
17 |
+
|
18 |
MAX_SEED = 2**32-1
|
19 |
|
20 |
@spaces.GPU(duration=80)
|