Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -175,7 +175,7 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
175 |
with gr.Row():
|
176 |
with gr.Column(elem_id="prompt-container"):
|
177 |
with gr.Row():
|
178 |
-
text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=2, elem_id="prompt-text-input")
|
179 |
|
180 |
# Accordion for advanced settings
|
181 |
with gr.Row():
|
@@ -189,7 +189,9 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
189 |
strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
|
190 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1) # Setting the seed to -1 will make it random
|
191 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ 2S a Karras", "DPM2 a Karras", "DPM2 Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM2 Ancestral", "DPM++ S", "DPM++ SDE", "DDPM", "DPM Fast", "dpmpp_2s_ancestral", "Euler", "Euler CFG PP", "Euler a", "Euler Ancestral", "Euler+beta", "Heun", "Heun PP2", "DDIM", "LMS Karras", "PLMS", "UniPC", "UniPC BH2"])
|
192 |
-
|
|
|
|
|
193 |
# Add a button to trigger the image generation
|
194 |
with gr.Row():
|
195 |
text_button = gr.Button("Generate Image", variant='primary', elem_id="gen-button")
|
|
|
175 |
with gr.Row():
|
176 |
with gr.Column(elem_id="prompt-container"):
|
177 |
with gr.Row():
|
178 |
+
text_prompt = gr.Textbox(label="Image Prompt ✍️", placeholder="Enter a prompt here", lines=2, show_copy_button = True, elem_id="prompt-text-input")
|
179 |
|
180 |
# Accordion for advanced settings
|
181 |
with gr.Row():
|
|
|
189 |
strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
|
190 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1) # Setting the seed to -1 will make it random
|
191 |
method = gr.Radio(label="Sampling method", value="DPM++ 2M Karras", choices=["DPM++ 2M Karras", "DPM++ 2S a Karras", "DPM2 a Karras", "DPM2 Karras", "DPM++ SDE Karras", "DEIS", "LMS", "DPM Adaptive", "DPM++ 2M", "DPM2 Ancestral", "DPM++ S", "DPM++ SDE", "DDPM", "DPM Fast", "dpmpp_2s_ancestral", "Euler", "Euler CFG PP", "Euler a", "Euler Ancestral", "Euler+beta", "Heun", "Heun PP2", "DDIM", "LMS Karras", "PLMS", "UniPC", "UniPC BH2"])
|
192 |
+
with gr.Row():
|
193 |
+
seed_output = gr.Textbox(label="Seed Used", elem_id="seed-output")
|
194 |
+
|
195 |
# Add a button to trigger the image generation
|
196 |
with gr.Row():
|
197 |
text_button = gr.Button("Generate Image", variant='primary', elem_id="gen-button")
|