John6666 commited on
Commit
6f2a033
1 Parent(s): 31a1cdb

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -39,8 +39,8 @@ MAX_IMAGE_SIZE = 1216
39
  css = """
40
  #container { margin: 0 auto; !important; }
41
  #col-container { margin: 0 auto; !important; }
42
- #result { display: block; max-width: 520px; max-height: 520px; width: 520px; height: 520px; margin: 0px auto; !important; }
43
- .lora { display: block; min-width: 480px; !important; }
44
  #model-info { text-align: center; !important; }
45
  """
46
 
@@ -140,9 +140,9 @@ with gr.Blocks(css=css, fill_width=True, elem_id="container") as demo:
140
  lora_download = gr.Button("Get and set LoRA and apply to prompt")
141
 
142
  with gr.Row():
143
- recom_prompt = gr.Checkbox(label="Recommended prompt", value=True)
144
- quality_selector = gr.Radio(label="Quality Tag Presets", interactive=True, choices=list(preset_quality.keys()), value="None")
145
- style_selector = gr.Radio(label="Style Presets", interactive=True, choices=list(preset_styles.keys()), value="None")
146
 
147
  with gr.Accordion("Translation Settings", open=False):
148
  chatbot = gr.Chatbot(likeable=False, render_markdown=False, visible=False) # component for auto-translation
 
39
  css = """
40
  #container { margin: 0 auto; !important; }
41
  #col-container { margin: 0 auto; !important; }
42
+ #result { max-width: 520px; max-height: 520px; margin: 0px auto; !important; }
43
+ .lora { min-width: 480px; !important; }
44
  #model-info { text-align: center; !important; }
45
  """
46
 
 
140
  lora_download = gr.Button("Get and set LoRA and apply to prompt")
141
 
142
  with gr.Row():
143
+ quality_selector = gr.Radio(label="Quality Tag Presets", interactive=True, choices=list(preset_quality.keys()), value="None", scale=3)
144
+ style_selector = gr.Radio(label="Style Presets", interactive=True, choices=list(preset_styles.keys()), value="None", scale=3)
145
+ recom_prompt = gr.Checkbox(label="Recommended prompt", value=True, scale=1)
146
 
147
  with gr.Accordion("Translation Settings", open=False):
148
  chatbot = gr.Chatbot(likeable=False, render_markdown=False, visible=False) # component for auto-translation