Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -244,6 +244,31 @@ with gr.Blocks(css="style.css", theme="NoCrypt/[email protected]") as demo:
|
|
244 |
choices=list(quality_prompt.keys()),
|
245 |
value="Standard v3.1",
|
246 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
with gr.Tab("Advanced Settings"):
|
248 |
with gr.Group():
|
249 |
style_selector = gr.Radio(
|
|
|
244 |
choices=list(quality_prompt.keys()),
|
245 |
value="Standard v3.1",
|
246 |
)
|
247 |
+
with gr.Tab("Img2Img"):
|
248 |
+
with gr.Group():
|
249 |
+
image = gr.image(
|
250 |
+
label="Image Input",
|
251 |
+
)
|
252 |
+
prompt = gr.Text(
|
253 |
+
label="Prompt",
|
254 |
+
max_lines=5,
|
255 |
+
placeholder="Enter your prompt",
|
256 |
+
)
|
257 |
+
negative_prompt = gr.Text(
|
258 |
+
label="Negative Prompt",
|
259 |
+
max_lines=5,
|
260 |
+
placeholder="Enter a negative prompt",
|
261 |
+
)
|
262 |
+
with gr.Accordion(label="Quality Tags", open=True):
|
263 |
+
add_quality_tags = gr.Checkbox(
|
264 |
+
label="Add Quality Tags", value=True
|
265 |
+
)
|
266 |
+
quality_selector = gr.Dropdown(
|
267 |
+
label="Quality Tags Presets",
|
268 |
+
interactive=True,
|
269 |
+
choices=list(quality_prompt.keys()),
|
270 |
+
value="Standard v3.1",
|
271 |
+
)
|
272 |
with gr.Tab("Advanced Settings"):
|
273 |
with gr.Group():
|
274 |
style_selector = gr.Radio(
|