Update app.py
Browse files
app.py
CHANGED
@@ -176,7 +176,13 @@ Have Fun & Enjoy ⚡ <a href="https://www.thafx.com"><abbr title="Website">//THA
|
|
176 |
with gr.Group():
|
177 |
image = gr.Image(label="Image", height=256, tool="editor", type="pil")
|
178 |
strength = gr.Slider(label="Transformation strength", minimum=0, maximum=1, step=0.01, value=0.5)
|
|
|
|
|
|
|
|
|
|
|
179 |
|
|
|
180 |
auto_prefix.change(lambda x: gr.update(placeholder=f"{prefix} [your prompt]" if x else "[Your prompt]"), inputs=auto_prefix, outputs=prompt, queue=False)
|
181 |
|
182 |
inputs = [prompt, guidance, steps, width, height, seed, image, strength, neg_prompt, auto_prefix]
|
|
|
176 |
with gr.Group():
|
177 |
image = gr.Image(label="Image", height=256, tool="editor", type="pil")
|
178 |
strength = gr.Slider(label="Transformation strength", minimum=0, maximum=1, step=0.01, value=0.5)
|
179 |
+
with gr.Tab("Prompts"):
|
180 |
+
with gr.Group():
|
181 |
+
neg_prompt = gr.Textbox(label="Negative prompt", placeholder="What to exclude from the image")
|
182 |
+
gr.JSON(value=lambda: random.choice([ test ])),
|
183 |
+
|
184 |
|
185 |
+
|
186 |
auto_prefix.change(lambda x: gr.update(placeholder=f"{prefix} [your prompt]" if x else "[Your prompt]"), inputs=auto_prefix, outputs=prompt, queue=False)
|
187 |
|
188 |
inputs = [prompt, guidance, steps, width, height, seed, image, strength, neg_prompt, auto_prefix]
|