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,30 @@ with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True
|
|
540 |
value="long",
|
541 |
)
|
542 |
|
543 |
-
|
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", value="ugd")
|
475 |
with gr.Row():
|
476 |
+
password = gr.Textbox(label="Password", type="password", placeholder="Enter your password", value="ugd!")
|
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.Row():
|
544 |
+
with gr.Accordion("Extra Options", open=False):
|
545 |
+
extra_options = gr.CheckboxGroup(
|
546 |
+
choices=[
|
547 |
+
"If there is a person/character in the image you must refer to them as {name}.",
|
548 |
+
"Do NOT include information about people/characters that cannot be changed (like ethnicity, gender, etc), but do still include changeable attributes (like hair style).",
|
549 |
+
"Include information about lighting.",
|
550 |
+
"Include information about camera angle.",
|
551 |
+
"Include information about whether there is a watermark or not.",
|
552 |
+
"Include information about whether there are JPEG artifacts or not.",
|
553 |
+
"If it is a photo you MUST include information about what camera was likely used and details such as aperture, shutter speed, ISO, etc.",
|
554 |
+
"Do NOT include anything sexual; keep it PG.",
|
555 |
+
"Do NOT mention the image's resolution.",
|
556 |
+
"You MUST include information about the subjective aesthetic quality of the image from low to very high.",
|
557 |
+
"Include information on the image's composition style, such as leading lines, rule of thirds, or symmetry.",
|
558 |
+
"Do NOT mention any text that is in the image.",
|
559 |
+
"Specify the depth of field and whether the background is in focus or blurred.",
|
560 |
+
"If applicable, mention the likely use of artificial or natural lighting sources.",
|
561 |
+
"Do NOT use any ambiguous language.",
|
562 |
+
"Include whether the image is sfw, suggestive, or nsfw.",
|
563 |
+
"ONLY describe the most important elements of the image."
|
564 |
+
],
|
565 |
+
label="Select Extra Options"
|
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.")
|