Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -37,14 +37,14 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
37 |
MAX_IMAGE_SIZE = 1216
|
38 |
|
39 |
css = """
|
40 |
-
#container {
|
41 |
#col-container { margin: 0 auto; !important; }
|
42 |
-
#result {
|
43 |
-
.lora {
|
44 |
#model-info { text-align: center; !important; }
|
45 |
"""
|
46 |
|
47 |
-
with gr.Blocks(
|
48 |
with gr.Tab("Image Generator"):
|
49 |
with gr.Column(elem_id="col-container"):
|
50 |
with gr.Row():
|
@@ -60,7 +60,7 @@ with gr.Blocks(css=css, fill_width=True, elem_id="container") as demo:
|
|
60 |
with gr.Accordion("Advanced Settings", open=False):
|
61 |
with gr.Row():
|
62 |
negative_prompt = gr.Text(label="Negative prompt", lines=1, max_lines=6, placeholder="Enter a negative prompt",
|
63 |
-
|
64 |
|
65 |
with gr.Row():
|
66 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
@@ -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
|
|
|
37 |
MAX_IMAGE_SIZE = 1216
|
38 |
|
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 |
|
47 |
+
with gr.Blocks(fill_width=True, elem_id="container", css=css) as demo:
|
48 |
with gr.Tab("Image Generator"):
|
49 |
with gr.Column(elem_id="col-container"):
|
50 |
with gr.Row():
|
|
|
60 |
with gr.Accordion("Advanced Settings", open=False):
|
61 |
with gr.Row():
|
62 |
negative_prompt = gr.Text(label="Negative prompt", lines=1, max_lines=6, placeholder="Enter a negative prompt",
|
63 |
+
value="(low quality, worst quality:1.2), very displeasing, watermark, signature, ugly")
|
64 |
|
65 |
with gr.Row():
|
66 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
|
|
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
|