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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -27
app.py CHANGED
@@ -437,8 +437,8 @@ def login(username, password):
437
  # Gradio interface
438
  with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True) as demo:
439
  with gr.Tab("Welcome"):
440
- with gr.Row(elem_classes="welcome-tab"):
441
- with gr.Column(scale=2, elem_classes="welcome-content"):
442
  gr.Markdown(
443
  """
444
  <img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/LVZnwLV43UUvKu3HORqSs.webp" alt="UDG" width="250" class="centered-image">
@@ -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,29 +540,28 @@ with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True
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.")
 
437
  # Gradio interface
438
  with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True) as demo:
439
  with gr.Tab("Welcome"):
440
+ with gr.Row():
441
+ with gr.Column(scale=2):
442
  gr.Markdown(
443
  """
444
  <img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/LVZnwLV43UUvKu3HORqSs.webp" alt="UDG" width="250" class="centered-image">
 
471
  )
472
 
473
  with gr.Row():
474
+ username = gr.Textbox(label="Username", placeholder="Enter your username", visible="ugd")
475
  with gr.Row():
476
+ password = gr.Textbox(label="Password", type="password", placeholder="Enter your password", visible="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.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
+ )
 
565
 
566
  name_input = gr.Textbox(label="Person/Character Name (if applicable)")
567
  gr.Markdown("**Note:** Name input is only used if an Extra Option is selected that requires it.")