Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,8 @@ def query(lora_id, prompt, is_negative=False, steps=28, cfg_scale=3.5, sampler="
|
|
108 |
except Exception as e:
|
109 |
print(f"Error when trying to open the image: {e}")
|
110 |
return None
|
111 |
-
|
|
|
112 |
examples = [
|
113 |
"a beautiful woman with blonde hair and blue eyes",
|
114 |
"a beautiful woman with brown hair and grey eyes",
|
@@ -168,6 +169,8 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
|
|
168 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "DPM Fast" "Euler", "Euler a", "Euler+beta", "Heun", "DDIM", "PLMS", "UniPC"])
|
169 |
strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
|
170 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
|
|
|
|
171 |
with gr.Row():
|
172 |
with gr.Accordion("🫘Seed", open=False):
|
173 |
seed_output = gr.Textbox(label="Seed Used", show_copy_button = True, elem_id="seed-output")
|
|
|
108 |
except Exception as e:
|
109 |
print(f"Error when trying to open the image: {e}")
|
110 |
return None
|
111 |
+
NUM_IMAGES_PER_PROMPT = 1
|
112 |
+
|
113 |
examples = [
|
114 |
"a beautiful woman with blonde hair and blue eyes",
|
115 |
"a beautiful woman with brown hair and grey eyes",
|
|
|
169 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ SDE Karras", "DPM Fast" "Euler", "Euler a", "Euler+beta", "Heun", "DDIM", "PLMS", "UniPC"])
|
170 |
strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
|
171 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
172 |
+
|
173 |
+
num_images_per_prompt = gr.Slider(label="Images", minimum=1, maximum=5, step=1, value=2, visible=True)
|
174 |
with gr.Row():
|
175 |
with gr.Accordion("🫘Seed", open=False):
|
176 |
seed_output = gr.Textbox(label="Seed Used", show_copy_button = True, elem_id="seed-output")
|