Update app.py
Browse files
app.py
CHANGED
@@ -152,17 +152,17 @@ footer {visibility: hidden !important;}
|
|
152 |
"""
|
153 |
|
154 |
with gr.Blocks(css=css) as dalle:
|
155 |
-
with gr.Tab("
|
156 |
with gr.Row():
|
157 |
with gr.Column(elem_id="prompt-container"):
|
158 |
with gr.Row():
|
159 |
-
text_prompt = gr.Textbox(label="Prompt", placeholder="
|
160 |
with gr.Row():
|
161 |
-
model = gr.Radio(label="
|
162 |
|
163 |
|
164 |
|
165 |
-
with gr.Tab("
|
166 |
with gr.Row():
|
167 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Чего не должно быть на изображении", value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness", lines=3, elem_id="negative-prompt-text-input")
|
168 |
with gr.Row():
|
@@ -178,14 +178,14 @@ with gr.Blocks(css=css) as dalle:
|
|
178 |
with gr.Row():
|
179 |
gpt = gr.Checkbox(label="ChatGPT")
|
180 |
|
181 |
-
with gr.Tab("
|
182 |
with gr.Row():
|
183 |
gr.Textbox(label="Шаблон prompt", value="{prompt} | ultra detail, ultra elaboration, ultra quality, perfect.")
|
184 |
|
185 |
with gr.Row():
|
186 |
-
text_button = gr.Button("
|
187 |
with gr.Row():
|
188 |
-
image_output = gr.Image(type="pil", label="
|
189 |
|
190 |
text_button.click(query, inputs=[text_prompt, model, negative_prompt, steps, cfg, method, seed, strength, gpt], outputs=image_output)
|
191 |
|
|
|
152 |
"""
|
153 |
|
154 |
with gr.Blocks(css=css) as dalle:
|
155 |
+
with gr.Tab("Basic Settings"):
|
156 |
with gr.Row():
|
157 |
with gr.Column(elem_id="prompt-container"):
|
158 |
with gr.Row():
|
159 |
+
text_prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt here", lines=3, elem_id="prompt-text-input")
|
160 |
with gr.Row():
|
161 |
+
model = gr.Radio(label="Model", value="Absolute Reality 1.8.1", choices=models_list)
|
162 |
|
163 |
|
164 |
|
165 |
+
with gr.Tab("Advanced Settings"):
|
166 |
with gr.Row():
|
167 |
negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Чего не должно быть на изображении", value="[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry, text, fuzziness", lines=3, elem_id="negative-prompt-text-input")
|
168 |
with gr.Row():
|
|
|
178 |
with gr.Row():
|
179 |
gpt = gr.Checkbox(label="ChatGPT")
|
180 |
|
181 |
+
with gr.Tab("Information"):
|
182 |
with gr.Row():
|
183 |
gr.Textbox(label="Шаблон prompt", value="{prompt} | ultra detail, ultra elaboration, ultra quality, perfect.")
|
184 |
|
185 |
with gr.Row():
|
186 |
+
text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|
187 |
with gr.Row():
|
188 |
+
image_output = gr.Image(type="pil", label="Image Output", elem_id="gallery")
|
189 |
|
190 |
text_button.click(query, inputs=[text_prompt, model, negative_prompt, steps, cfg, method, seed, strength, gpt], outputs=image_output)
|
191 |
|