gokaygokay commited on
Commit
77987e2
1 Parent(s): c2401c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -27
app.py CHANGED
@@ -387,32 +387,32 @@ def create_interface():
387
  seed = gr.Number(label="Seed", value=0)
388
  custom = gr.Textbox(label="Custom")
389
  subject = gr.Textbox(label="Subject")
390
- artform = gr.Dropdown(["disabled", "random"] + ARTFORM, label="Artform", value="photography")
391
- photo_type = gr.Dropdown(["disabled", "random"] + PHOTO_TYPE, label="Photo Type", value="random")
392
-
393
- with gr.Accordion("Character Details"):
394
- body_types = gr.Dropdown(["disabled", "random"] + BODY_TYPES, label="Body Types", value="random")
395
- default_tags = gr.Dropdown(["disabled", "random"] + DEFAULT_TAGS, label="Default Tags", value="random")
396
- roles = gr.Dropdown(["disabled", "random"] + ROLES, label="Roles", value="random")
397
- hairstyles = gr.Dropdown(["disabled", "random"] + HAIRSTYLES, label="Hairstyles", value="random")
398
- clothing = gr.Dropdown(["disabled", "random"] + CLOTHING, label="Clothing", value="random")
399
-
400
- with gr.Accordion("Scene Details"):
401
- place = gr.Dropdown(["disabled", "random"] + PLACE, label="Place", value="random")
402
- lighting = gr.Dropdown(["disabled", "random"] + LIGHTING, label="Lighting", value="random")
403
- composition = gr.Dropdown(["disabled", "random"] + COMPOSITION, label="Composition", value="random")
404
- pose = gr.Dropdown(["disabled", "random"] + POSE, label="Pose", value="random")
405
- background = gr.Dropdown(["disabled", "random"] + BACKGROUND, label="Background", value="random")
406
-
407
- with gr.Accordion("Style and Artist"):
408
- additional_details = gr.Dropdown(["disabled", "random"] + ADDITIONAL_DETAILS, label="Additional Details", value="random")
409
- photography_styles = gr.Dropdown(["disabled", "random"] + PHOTOGRAPHY_STYLES, label="Photography Styles", value="random")
410
- device = gr.Dropdown(["disabled", "random"] + DEVICE, label="Device", value="random")
411
- photographer = gr.Dropdown(["disabled", "random"] + PHOTOGRAPHER, label="Photographer", value="random")
412
- artist = gr.Dropdown(["disabled", "random"] + ARTIST, label="Artist", value="random")
413
- digital_artform = gr.Dropdown(["disabled", "random"] + DIGITAL_ARTFORM, label="Digital Artform", value="random")
414
-
415
- with gr.Column(scale=3):
416
  with gr.Accordion("Image and Caption", open=True):
417
  input_image = gr.Image(label="Input Image (optional)")
418
  caption_output = gr.Textbox(label="Generated Caption", lines=3)
@@ -425,7 +425,8 @@ def create_interface():
425
  t5xxl_output = gr.Textbox(label="T5XXL Output", visible=True)
426
  clip_l_output = gr.Textbox(label="CLIP L Output", visible=True)
427
  clip_g_output = gr.Textbox(label="CLIP G Output", visible=True)
428
-
 
429
  with gr.Accordion("Text Generation", open=True):
430
  model = gr.Dropdown(["Mixtral", "Mistral", "Llama 3", "Mistral-Nemo"], label="Model", value="Mixtral")
431
  happy_talk = gr.Checkbox(label="Happy Talk", value=True)
 
387
  seed = gr.Number(label="Seed", value=0)
388
  custom = gr.Textbox(label="Custom")
389
  subject = gr.Textbox(label="Subject")
390
+ artform = gr.Dropdown(["disabled"] + ARTFORM, label="Artform", value="disabled")
391
+ photo_type = gr.Dropdown(["disabled"] + PHOTO_TYPE, label="Photo Type", value="disabled")
392
+
393
+ with gr.Accordion("Character Details", value=False):
394
+ body_types = gr.Dropdown(["disabled"] + BODY_TYPES, label="Body Types", value="disabled")
395
+ default_tags = gr.Dropdown(["disabled"] + DEFAULT_TAGS, label="Default Tags", value="disabled")
396
+ roles = gr.Dropdown(["disabled"] + ROLES, label="Roles", value="disabled")
397
+ hairstyles = gr.Dropdown(["disabled"] + HAIRSTYLES, label="Hairstyles", value="disabled")
398
+ clothing = gr.Dropdown(["disabled"] + CLOTHING, label="Clothing", value="disabled")
399
+
400
+ with gr.Accordion("Scene Details", value=False):
401
+ place = gr.Dropdown(["disabled"] + PLACE, label="Place", value="disabled")
402
+ lighting = gr.Dropdown(["disabled"] + LIGHTING, label="Lighting", value="disabled")
403
+ composition = gr.Dropdown(["disabled"] + COMPOSITION, label="Composition", value="disabled")
404
+ pose = gr.Dropdown(["disabled"] + POSE, label="Pose", value="disabled")
405
+ background = gr.Dropdown(["disabled"] + BACKGROUND, label="Background", value="disabled")
406
+
407
+ with gr.Accordion("Style and Artist", value=False):
408
+ additional_details = gr.Dropdown(["disabled"] + ADDITIONAL_DETAILS, label="Additional Details", value="disabled")
409
+ photography_styles = gr.Dropdown(["disabled"] + PHOTOGRAPHY_STYLES, label="Photography Styles", value="disabled")
410
+ device = gr.Dropdown(["disabled"] + DEVICE, label="Device", value="disabled")
411
+ photographer = gr.Dropdown(["disabled"] + PHOTOGRAPHER, label="Photographer", value="disabled")
412
+ artist = gr.Dropdown(["disabled"] + ARTIST, label="Artist", value="disabled")
413
+ digital_artform = gr.Dropdown(["disabled"] + DIGITAL_ARTFORM, label="Digital Artform", value="disabled")
414
+
415
+ with gr.Column(scale=2):
416
  with gr.Accordion("Image and Caption", open=True):
417
  input_image = gr.Image(label="Input Image (optional)")
418
  caption_output = gr.Textbox(label="Generated Caption", lines=3)
 
425
  t5xxl_output = gr.Textbox(label="T5XXL Output", visible=True)
426
  clip_l_output = gr.Textbox(label="CLIP L Output", visible=True)
427
  clip_g_output = gr.Textbox(label="CLIP G Output", visible=True)
428
+
429
+ with gr.Column(scale=2):
430
  with gr.Accordion("Text Generation", open=True):
431
  model = gr.Dropdown(["Mixtral", "Mistral", "Llama 3", "Mistral-Nemo"], label="Model", value="Mixtral")
432
  happy_talk = gr.Checkbox(label="Happy Talk", value=True)