Update webui.py
Browse files
webui.py
CHANGED
@@ -97,7 +97,7 @@ shared.gradio_root = gr.Blocks(
|
|
97 |
|
98 |
with shared.gradio_root:
|
99 |
currentTask = gr.State(worker.AsyncTask(args=[]))
|
100 |
-
with gr.Row():
|
101 |
with gr.Column(scale=2):
|
102 |
with gr.Row():
|
103 |
progress_window = grh.Image(label='Preview', show_label=True, visible=False, height=768,
|
@@ -112,7 +112,7 @@ with shared.gradio_root:
|
|
112 |
with gr.Row(elem_classes='type_row'):
|
113 |
with gr.Column(scale=17):
|
114 |
prompt = gr.Textbox(show_label=False, placeholder="Type prompt here or paste parameters.", elem_id='positive_prompt',
|
115 |
-
container=
|
116 |
|
117 |
default_prompt = modules.config.default_prompt
|
118 |
if isinstance(default_prompt, str) and default_prompt != '':
|
@@ -196,8 +196,9 @@ with shared.gradio_root:
|
|
196 |
queue=False, show_progress=False)
|
197 |
with gr.TabItem(label='Inpaint or Outpaint') as inpaint_tab:
|
198 |
with gr.Row(elem_id="IoOFixed"):
|
199 |
-
|
200 |
-
|
|
|
201 |
|
202 |
inpaint_additional_prompt = gr.Textbox(placeholder="Describe what you want to inpaint.", elem_id='inpaint_additional_prompt', label='Inpaint Additional Prompt', visible=False, show_copy_button=True)
|
203 |
outpaint_selections = gr.CheckboxGroup(choices=['Left', 'Right', 'Top', 'Bottom'], value=[], label='Outpaint Direction')
|
@@ -253,9 +254,9 @@ with shared.gradio_root:
|
|
253 |
ip_tab.select(lambda: 'ip', outputs=current_tab, queue=False, _js=down_js, show_progress=False)
|
254 |
desc_tab.select(lambda: 'desc', outputs=current_tab, queue=False, _js=down_js, show_progress=False)
|
255 |
|
256 |
-
with gr.
|
257 |
-
with gr.
|
258 |
-
with gr.
|
259 |
performance_selection = gr.Radio(label='Performance',
|
260 |
choices=modules.flags.performance_selections,
|
261 |
value=modules.config.default_performance)
|
@@ -303,7 +304,7 @@ with shared.gradio_root:
|
|
303 |
history_link = gr.HTML()
|
304 |
shared.gradio_root.load(update_history_link, outputs=history_link, queue=False, show_progress=False)
|
305 |
|
306 |
-
with gr.
|
307 |
style_sorter.try_load_sorted_styles(
|
308 |
style_names=legal_style_names,
|
309 |
default_selected=modules.config.default_styles)
|
@@ -337,7 +338,7 @@ with shared.gradio_root:
|
|
337 |
show_progress=False).then(
|
338 |
lambda: None, _js='()=>{refresh_style_localization();}')
|
339 |
|
340 |
-
with gr.
|
341 |
with gr.Group():
|
342 |
with gr.Row():
|
343 |
base_model = gr.Dropdown(label='Base Model (SDXL only)', choices=modules.config.model_filenames, value=modules.config.default_base_model_name, show_label=True)
|
|
|
97 |
|
98 |
with shared.gradio_root:
|
99 |
currentTask = gr.State(worker.AsyncTask(args=[]))
|
100 |
+
with gr.Row(elem_id="dConts"):
|
101 |
with gr.Column(scale=2):
|
102 |
with gr.Row():
|
103 |
progress_window = grh.Image(label='Preview', show_label=True, visible=False, height=768,
|
|
|
112 |
with gr.Row(elem_classes='type_row'):
|
113 |
with gr.Column(scale=17):
|
114 |
prompt = gr.Textbox(show_label=False, placeholder="Type prompt here or paste parameters.", elem_id='positive_prompt',
|
115 |
+
container=True, autofocus=True, elem_classes='type_row', lines=1024, show_copy_button=True)
|
116 |
|
117 |
default_prompt = modules.config.default_prompt
|
118 |
if isinstance(default_prompt, str) and default_prompt != '':
|
|
|
196 |
queue=False, show_progress=False)
|
197 |
with gr.TabItem(label='Inpaint or Outpaint') as inpaint_tab:
|
198 |
with gr.Row(elem_id="IoOFixed"):
|
199 |
+
with gr.Row(elem_id="IoOFixed2"):
|
200 |
+
inpaint_mask_upload_checkbox = gr.Checkbox(label='Enable Mask Upload', value=False)
|
201 |
+
invert_mask_checkbox = gr.Checkbox(label='Invert Mask', value=False)
|
202 |
|
203 |
inpaint_additional_prompt = gr.Textbox(placeholder="Describe what you want to inpaint.", elem_id='inpaint_additional_prompt', label='Inpaint Additional Prompt', visible=False, show_copy_button=True)
|
204 |
outpaint_selections = gr.CheckboxGroup(choices=['Left', 'Right', 'Top', 'Bottom'], value=[], label='Outpaint Direction')
|
|
|
254 |
ip_tab.select(lambda: 'ip', outputs=current_tab, queue=False, _js=down_js, show_progress=False)
|
255 |
desc_tab.select(lambda: 'desc', outputs=current_tab, queue=False, _js=down_js, show_progress=False)
|
256 |
|
257 |
+
with gr.Row(visible=False) as advanced_column:
|
258 |
+
with gr.Tabs():
|
259 |
+
with gr.TabItem(label='Setting'):
|
260 |
performance_selection = gr.Radio(label='Performance',
|
261 |
choices=modules.flags.performance_selections,
|
262 |
value=modules.config.default_performance)
|
|
|
304 |
history_link = gr.HTML()
|
305 |
shared.gradio_root.load(update_history_link, outputs=history_link, queue=False, show_progress=False)
|
306 |
|
307 |
+
with gr.TabItem(label='Style'):
|
308 |
style_sorter.try_load_sorted_styles(
|
309 |
style_names=legal_style_names,
|
310 |
default_selected=modules.config.default_styles)
|
|
|
338 |
show_progress=False).then(
|
339 |
lambda: None, _js='()=>{refresh_style_localization();}')
|
340 |
|
341 |
+
with gr.TabItem(label='Model'):
|
342 |
with gr.Group():
|
343 |
with gr.Row():
|
344 |
base_model = gr.Dropdown(label='Base Model (SDXL only)', choices=modules.config.model_filenames, value=modules.config.default_base_model_name, show_label=True)
|