Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
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 {
|
| 43 |
-
.lora {
|
| 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 |
-
|
| 144 |
-
|
| 145 |
-
|
| 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
|