Boboiazumi commited on
Commit
31e2186
1 Parent(s): 735ce25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -226,13 +226,6 @@ with gr.Blocks(css="style.css", theme="NoCrypt/[email protected]") as demo:
226
  with gr.Column(scale=2):
227
  with gr.Tab("Input"):
228
  with gr.Group():
229
- isImg2Img = gr.Checkbox(
230
- label="Img2Img", value=False
231
- )
232
- image = gr.Image(
233
- label="Image Input",
234
- visible=False
235
- )
236
  prompt = gr.Text(
237
  label="Prompt",
238
  max_lines=5,
@@ -243,6 +236,13 @@ with gr.Blocks(css="style.css", theme="NoCrypt/[email protected]") as demo:
243
  max_lines=5,
244
  placeholder="Enter a negative prompt",
245
  )
 
 
 
 
 
 
 
246
  with gr.Accordion(label="Quality Tags", open=True):
247
  add_quality_tags = gr.Checkbox(
248
  label="Add Quality Tags", value=True
@@ -359,9 +359,9 @@ with gr.Blocks(css="style.css", theme="NoCrypt/[email protected]") as demo:
359
  api_name=False,
360
  )
361
  isImg2Img.change(
362
- fn=lambda x: [gr.update(visible=x)],
363
  inputs=isImg2Img,
364
- outputs=[image],
365
  queue=False,
366
  api_name=False,
367
  )
 
226
  with gr.Column(scale=2):
227
  with gr.Tab("Input"):
228
  with gr.Group():
 
 
 
 
 
 
 
229
  prompt = gr.Text(
230
  label="Prompt",
231
  max_lines=5,
 
236
  max_lines=5,
237
  placeholder="Enter a negative prompt",
238
  )
239
+ isImg2Img = gr.Checkbox(
240
+ label="Img2Img", value=False
241
+ )
242
+ image = gr.Image(
243
+ label="Image Input",
244
+ visible=False
245
+ )
246
  with gr.Accordion(label="Quality Tags", open=True):
247
  add_quality_tags = gr.Checkbox(
248
  label="Add Quality Tags", value=True
 
359
  api_name=False,
360
  )
361
  isImg2Img.change(
362
+ fn=lambda x: gr.update(visible=x),
363
  inputs=isImg2Img,
364
+ outputs=image,
365
  queue=False,
366
  api_name=False,
367
  )