Severian commited on
Commit
48d0f98
1 Parent(s): 675ac72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -26
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", 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,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.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.")
 
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.")