amildravid4292 commited on
Commit
edcea2d
·
verified ·
1 Parent(s): cf503c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -21
app.py CHANGED
@@ -438,7 +438,7 @@ with gr.Blocks(css="style.css") as demo:
438
  with gr.Column():
439
  with gr.Row():
440
  with gr.Column():
441
- input_image = gr.Image(label="Identity from Sampled or Uploaded Model", height=512, width=512)
442
  # input_image = gr.ImageEditor(elem_id="image_upload", type='pil', label="Upload image and draw to define mask",
443
  # height=512, width=512, brush=gr.Brush(), layers=False)
444
  with gr.Row():
@@ -447,32 +447,23 @@ with gr.Blocks(css="style.css") as demo:
447
  file_input = gr.File(label="Upload Model", container=True)
448
  file_input = gr.File(label="Download Model", container=True)
449
  with gr.Column():
 
450
  image_slider = ImageSlider(position=0.5, type="pil", height=512, width=512)
451
- # gallery1 = gr.Image(label="Identity from Original Model",height=512, width=512, interactive=False)
452
 
453
- prompt1 = gr.Textbox(label="Prompt",
454
  info="Make sure to include 'sks person'" ,
455
  placeholder="sks person",
456
  value="sks person")
 
 
 
 
 
 
 
 
457
 
458
- # Editing
459
- with gr.Column():
460
- #gallery2 = gr.Image(label="Identity from Edited Model", interactive=False, visible=False )
461
- with gr.Row():
462
- a1 = gr.Slider(label="- Young +", value=0, step=0.001, minimum=-1, maximum=1, interactive=True)
463
- a2 = gr.Slider(label="- Pointy Nose +", value=0, step=0.001, minimum=-1, maximum=1, interactive=True)
464
- with gr.Row():
465
- a3 = gr.Slider(label="- Curly Hair +", value=0, step=0.001, minimum=-1, maximum=1, interactive=True)
466
- a4 = gr.Slider(label="- Thick Eyebrows +", value=0, step=0.001, minimum=-1, maximum=1, interactive=True)
467
- # prompt2 = gr.Textbox(label="Prompt",
468
- # info="Make sure to include 'sks person'" ,
469
- # placeholder="sks person",
470
- # value="sks person", visible=False)
471
- # seed2 = gr.Number(value=5, label="Seed", precision=0, interactive=True, visible=False)
472
-
473
-
474
-
475
- # submit2 = gr.Button("Generate", visible=False)
476
 
477
 
478
 
 
438
  with gr.Column():
439
  with gr.Row():
440
  with gr.Column():
441
+ input_image = gr.Image(label="Identity from Sampled or Uploaded Model", height=512, width=512, interactive=False)
442
  # input_image = gr.ImageEditor(elem_id="image_upload", type='pil', label="Upload image and draw to define mask",
443
  # height=512, width=512, brush=gr.Brush(), layers=False)
444
  with gr.Row():
 
447
  file_input = gr.File(label="Upload Model", container=True)
448
  file_input = gr.File(label="Download Model", container=True)
449
  with gr.Column():
450
+
451
  image_slider = ImageSlider(position=0.5, type="pil", height=512, width=512)
 
452
 
453
+ prompt1 = gr.Textbox(label="Prompt",
454
  info="Make sure to include 'sks person'" ,
455
  placeholder="sks person",
456
  value="sks person")
457
+ with gr.Row():
458
+ a1 = gr.Slider(label="- Young +", value=0, step=0.001, minimum=-1, maximum=1, interactive=True)
459
+ a2 = gr.Slider(label="- Pointy Nose +", value=0, step=0.001, minimum=-1, maximum=1, interactive=True)
460
+ with gr.Row():
461
+ a3 = gr.Slider(label="- Curly Hair +", value=0, step=0.001, minimum=-1, maximum=1, interactive=True)
462
+ a4 = gr.Slider(label="- Thick Eyebrows +", value=0, step=0.001, minimum=-1, maximum=1, interactive=True)
463
+
464
+
465
 
466
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
467
 
468
 
469