Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -471,9 +471,9 @@ with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True
|
|
471 |
)
|
472 |
|
473 |
with gr.Row():
|
474 |
-
username = gr.Textbox(label="Username", placeholder="Enter your username"
|
475 |
with gr.Row():
|
476 |
-
password = gr.Textbox(label="Password", type="password", placeholder="Enter your password"
|
477 |
with gr.Row():
|
478 |
login_button = gr.Button("Login", size="sm")
|
479 |
login_message = gr.Markdown(visible=False)
|
@@ -540,30 +540,29 @@ with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True
|
|
540 |
value="long",
|
541 |
)
|
542 |
|
543 |
-
with gr.
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
)
|
567 |
|
568 |
name_input = gr.Textbox(label="Person/Character Name (if applicable)")
|
569 |
gr.Markdown("**Note:** Name input is only used if an Extra Option is selected that requires it.")
|
|
|
471 |
)
|
472 |
|
473 |
with gr.Row():
|
474 |
+
username = gr.Textbox(label="Username", placeholder="Enter your username")
|
475 |
with gr.Row():
|
476 |
+
password = gr.Textbox(label="Password", type="password", placeholder="Enter your password")
|
477 |
with gr.Row():
|
478 |
login_button = gr.Button("Login", size="sm")
|
479 |
login_message = gr.Markdown(visible=False)
|
|
|
540 |
value="long",
|
541 |
)
|
542 |
|
543 |
+
with gr.Accordion("Extra Options", open=True):
|
544 |
+
extra_options = gr.CheckboxGroup(
|
545 |
+
choices=[
|
546 |
+
"If there is a person/character in the image you must refer to them as {name}.",
|
547 |
+
"Do NOT include information about people/characters that cannot be changed (like ethnicity, gender, etc), but do still include changeable attributes (like hair style).",
|
548 |
+
"Include information about lighting.",
|
549 |
+
"Include information about camera angle.",
|
550 |
+
"Include information about whether there is a watermark or not.",
|
551 |
+
"Include information about whether there are JPEG artifacts or not.",
|
552 |
+
"If it is a photo you MUST include information about what camera was likely used and details such as aperture, shutter speed, ISO, etc.",
|
553 |
+
"Do NOT include anything sexual; keep it PG.",
|
554 |
+
"Do NOT mention the image's resolution.",
|
555 |
+
"You MUST include information about the subjective aesthetic quality of the image from low to very high.",
|
556 |
+
"Include information on the image's composition style, such as leading lines, rule of thirds, or symmetry.",
|
557 |
+
"Do NOT mention any text that is in the image.",
|
558 |
+
"Specify the depth of field and whether the background is in focus or blurred.",
|
559 |
+
"If applicable, mention the likely use of artificial or natural lighting sources.",
|
560 |
+
"Do NOT use any ambiguous language.",
|
561 |
+
"Include whether the image is sfw, suggestive, or nsfw.",
|
562 |
+
"ONLY describe the most important elements of the image."
|
563 |
+
],
|
564 |
+
label="Select Extra Options"
|
565 |
+
)
|
|
|
566 |
|
567 |
name_input = gr.Textbox(label="Person/Character Name (if applicable)")
|
568 |
gr.Markdown("**Note:** Name input is only used if an Extra Option is selected that requires it.")
|