Spaces:
Runtime error
Runtime error
put lora_model to last
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ MAX_IMAGE_SIZE = 2048
|
|
18 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to(device)
|
19 |
|
20 |
@spaces.GPU(duration=300)
|
21 |
-
def infer(prompt,
|
22 |
global pipe
|
23 |
|
24 |
# Load LoRA if specified
|
|
|
18 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to(device)
|
19 |
|
20 |
@spaces.GPU(duration=300)
|
21 |
+
def infer(prompt, seed=0, randomize_seed=True, width=1024, height=1024, guidance_scale=5.0, num_inference_steps=28, lora_model="davisbro/half_illustration", progress=gr.Progress(track_tqdm=True)):
|
22 |
global pipe
|
23 |
|
24 |
# Load LoRA if specified
|