Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def load_b_lora_to_unet(pipe, content_lora_model_id: str = '', style_lora_model_
|
|
47 |
except Exception as e:
|
48 |
raise type(e)(f'failed to load_b_lora_to_unet, due to: {e}')
|
49 |
|
50 |
-
def main(content_b_lora, style_b_lora, prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps):
|
51 |
|
52 |
if randomize_seed:
|
53 |
seed = random.randint(0, MAX_SEED)
|
@@ -96,7 +96,7 @@ with gr.Blocks(css=css) as demo:
|
|
96 |
|
97 |
with gr.Column(elem_id="col-container"):
|
98 |
gr.Markdown(f"""
|
99 |
-
#
|
100 |
Currently running on {power_device}.
|
101 |
""")
|
102 |
|
|
|
47 |
except Exception as e:
|
48 |
raise type(e)(f'failed to load_b_lora_to_unet, due to: {e}')
|
49 |
|
50 |
+
def main(content_b_lora, style_b_lora, prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
|
51 |
|
52 |
if randomize_seed:
|
53 |
seed = random.randint(0, MAX_SEED)
|
|
|
96 |
|
97 |
with gr.Column(elem_id="col-container"):
|
98 |
gr.Markdown(f"""
|
99 |
+
# B-LoRas Inference
|
100 |
Currently running on {power_device}.
|
101 |
""")
|
102 |
|