multimodalart HF staff commited on
Commit
a8e6666
1 Parent(s): fa3b47c

Swap order and tweak texts

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -496,26 +496,15 @@ with gr.Blocks(css="style.css") as demo:
496
 
497
  with gr.Row():
498
  inversion_progress = gr.Textbox(visible=False, label="Inversion progress")
499
-
500
-
501
- with gr.Row().style(mobile_collapse=False, equal_height=True):
502
- tar_prompt = gr.Textbox(
503
- label="Describe your edited image",
504
- # show_label=False,
505
- max_lines=1, value="", scale=3,
506
- placeholder="Target prompt, DDPM Inversion", info = "Leave blank to have only SEGA concepts guide your edit"
507
- )
508
- # caption_button = gr.Button("Caption Image", scale=1)
509
-
510
 
511
 
512
  with gr.Box():
513
- intro_segs = gr.Markdown("Add/Remove SEGA Concepts from your Image")
514
  # 1st SEGA concept
515
  with gr.Row().style(mobile_collapse=False) as row1:
516
  with gr.Column(scale=3, min_width=100):
517
  edit_concept_1 = gr.Textbox(
518
- label="Edit Concept",
519
  show_label=True,
520
  max_lines=1, value="",
521
  placeholder="E.g.: Sunglasses",
@@ -537,7 +526,7 @@ with gr.Blocks(css="style.css") as demo:
537
  with gr.Row(visible=False).style(equal_height=True) as row2:
538
  with gr.Column(scale=3, min_width=100):
539
  edit_concept_2 = gr.Textbox(
540
- label="Edit Concept",
541
  show_label=True,
542
  max_lines=1,
543
  placeholder="E.g.: Realistic",
@@ -556,7 +545,7 @@ with gr.Blocks(css="style.css") as demo:
556
  with gr.Row(visible=False).style(equal_height=True) as row3:
557
  with gr.Column(scale=3, min_width=100):
558
  edit_concept_3 = gr.Textbox(
559
- label="Edit Concept",
560
  show_label=True,
561
  max_lines=1,
562
  placeholder="E.g.: orange",
@@ -577,6 +566,17 @@ with gr.Blocks(css="style.css") as demo:
577
  # add_concept_button = gr.Button("+1 concept")
578
 
579
 
 
 
 
 
 
 
 
 
 
 
 
580
  with gr.Row():
581
  run_button = gr.Button("Edit your image!", visible=True)
582
 
 
496
 
497
  with gr.Row():
498
  inversion_progress = gr.Textbox(visible=False, label="Inversion progress")
 
 
 
 
 
 
 
 
 
 
 
499
 
500
 
501
  with gr.Box():
502
+ intro_segs = gr.Markdown("Add/Remove Concepts from your Image <span style=\"font-size: 12px; color: rgb(156, 163, 175)\">with Semantic Guidance</span>")
503
  # 1st SEGA concept
504
  with gr.Row().style(mobile_collapse=False) as row1:
505
  with gr.Column(scale=3, min_width=100):
506
  edit_concept_1 = gr.Textbox(
507
+ label="Concept",
508
  show_label=True,
509
  max_lines=1, value="",
510
  placeholder="E.g.: Sunglasses",
 
526
  with gr.Row(visible=False).style(equal_height=True) as row2:
527
  with gr.Column(scale=3, min_width=100):
528
  edit_concept_2 = gr.Textbox(
529
+ label="Concept",
530
  show_label=True,
531
  max_lines=1,
532
  placeholder="E.g.: Realistic",
 
545
  with gr.Row(visible=False).style(equal_height=True) as row3:
546
  with gr.Column(scale=3, min_width=100):
547
  edit_concept_3 = gr.Textbox(
548
+ label="Concept",
549
  show_label=True,
550
  max_lines=1,
551
  placeholder="E.g.: orange",
 
566
  # add_concept_button = gr.Button("+1 concept")
567
 
568
 
569
+
570
+ with gr.Row().style(mobile_collapse=False, equal_height=True):
571
+ tar_prompt = gr.Textbox(
572
+ label="Describe your edited image (optional)",
573
+ # show_label=False,
574
+ max_lines=1, value="", scale=3,
575
+ placeholder="Target prompt, DDPM Inversion", info = "DDPM Inversion Prompt. Can help with global changes, modify to what you would like to see"
576
+ )
577
+ # caption_button = gr.Button("Caption Image", scale=1)
578
+
579
+
580
  with gr.Row():
581
  run_button = gr.Button("Edit your image!", visible=True)
582