Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def load_model(custom_model):
|
|
24 |
pipe.to(device)
|
25 |
return "Model loaded!"
|
26 |
|
27 |
-
def infer (prompt, inf_steps, guidance_scale, seed,
|
28 |
generator = torch.Generator(device="cuda").manual_seed(seed)
|
29 |
image = pipe(
|
30 |
prompt=prompt,
|
|
|
24 |
pipe.to(device)
|
25 |
return "Model loaded!"
|
26 |
|
27 |
+
def infer (prompt, inf_steps, guidance_scale, seed, lora_weight, progress=gr.Progress(track_tqdm=True)):
|
28 |
generator = torch.Generator(device="cuda").manual_seed(seed)
|
29 |
image = pipe(
|
30 |
prompt=prompt,
|