Spaces:
Running
Running
gokaygokay
commited on
Commit
•
77987e2
1
Parent(s):
c2401c0
Update app.py
Browse files
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"
|
391 |
-
photo_type = gr.Dropdown(["disabled"
|
392 |
-
|
393 |
-
with gr.Accordion("Character Details"):
|
394 |
-
body_types = gr.Dropdown(["disabled"
|
395 |
-
default_tags = gr.Dropdown(["disabled"
|
396 |
-
roles = gr.Dropdown(["disabled"
|
397 |
-
hairstyles = gr.Dropdown(["disabled"
|
398 |
-
clothing = gr.Dropdown(["disabled"
|
399 |
-
|
400 |
-
with gr.Accordion("Scene Details"):
|
401 |
-
place = gr.Dropdown(["disabled"
|
402 |
-
lighting = gr.Dropdown(["disabled"
|
403 |
-
composition = gr.Dropdown(["disabled"
|
404 |
-
pose = gr.Dropdown(["disabled"
|
405 |
-
background = gr.Dropdown(["disabled"
|
406 |
-
|
407 |
-
with gr.Accordion("Style and Artist"):
|
408 |
-
additional_details = gr.Dropdown(["disabled"
|
409 |
-
photography_styles = gr.Dropdown(["disabled"
|
410 |
-
device = gr.Dropdown(["disabled"
|
411 |
-
photographer = gr.Dropdown(["disabled"
|
412 |
-
artist = gr.Dropdown(["disabled"
|
413 |
-
digital_artform = gr.Dropdown(["disabled"
|
414 |
-
|
415 |
-
with gr.Column(scale=
|
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)
|