Hermes Bot commited on
Commit ·
09db071
1
Parent(s): 74905be
Add CSS styling for Run Forever checkbox and align Run/Run Forever height
Browse files- ui/shared/img2img_ui.py +6 -2
- ui/shared/inpaint_ui.py +7 -3
- ui/shared/outpaint_ui.py +6 -2
- ui/shared/txt2img_ui.py +5 -1
ui/shared/img2img_ui.py
CHANGED
|
@@ -28,9 +28,13 @@ def create_ui():
|
|
| 28 |
with gr.Row():
|
| 29 |
components.update(create_category_filter_ui(prefix))
|
| 30 |
components[f'base_model_{prefix}'] = gr.Dropdown(label="Base Model", choices=list(MODEL_MAP_CHECKPOINT.keys()), value=list(MODEL_MAP_CHECKPOINT.keys())[0], scale=3, allow_custom_value=True)
|
| 31 |
-
with gr.Column(scale=1):
|
| 32 |
components[f'run_{prefix}'] = gr.Button("Run", variant="primary")
|
| 33 |
-
components[f'run_forever_{prefix}'] = gr.Checkbox(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
with gr.Row():
|
| 36 |
with gr.Column(scale=1):
|
|
|
|
| 28 |
with gr.Row():
|
| 29 |
components.update(create_category_filter_ui(prefix))
|
| 30 |
components[f'base_model_{prefix}'] = gr.Dropdown(label="Base Model", choices=list(MODEL_MAP_CHECKPOINT.keys()), value=list(MODEL_MAP_CHECKPOINT.keys())[0], scale=3, allow_custom_value=True)
|
| 31 |
+
with gr.Column(scale=1):
|
| 32 |
components[f'run_{prefix}'] = gr.Button("Run", variant="primary")
|
| 33 |
+
components[f'run_forever_{prefix}'] = gr.Checkbox(
|
| 34 |
+
label="Run Forever",
|
| 35 |
+
value=False,
|
| 36 |
+
elem_classes=["run-forever-checkbox"]
|
| 37 |
+
)
|
| 38 |
|
| 39 |
with gr.Row():
|
| 40 |
with gr.Column(scale=1):
|
ui/shared/inpaint_ui.py
CHANGED
|
@@ -34,9 +34,13 @@ def create_ui():
|
|
| 34 |
scale=3,
|
| 35 |
allow_custom_value=True
|
| 36 |
)
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
components[f'model_and_run_row_{prefix}'] = [arch_row, model_and_run_row]
|
| 42 |
|
|
|
|
| 34 |
scale=3,
|
| 35 |
allow_custom_value=True
|
| 36 |
)
|
| 37 |
+
with gr.Column(scale=1):
|
| 38 |
+
components[f'run_{prefix}'] = gr.Button("Run Inpaint", variant="primary")
|
| 39 |
+
components[f'run_forever_{prefix}'] = gr.Checkbox(
|
| 40 |
+
label="Run Forever",
|
| 41 |
+
value=False,
|
| 42 |
+
elem_classes=["run-forever-checkbox"]
|
| 43 |
+
)
|
| 44 |
|
| 45 |
components[f'model_and_run_row_{prefix}'] = [arch_row, model_and_run_row]
|
| 46 |
|
ui/shared/outpaint_ui.py
CHANGED
|
@@ -34,9 +34,13 @@ def create_ui():
|
|
| 34 |
scale=3,
|
| 35 |
allow_custom_value=True
|
| 36 |
)
|
| 37 |
-
with gr.Column(scale=1):
|
| 38 |
components[f'run_{prefix}'] = gr.Button("Run Outpaint", variant="primary")
|
| 39 |
-
components[f'run_forever_{prefix}'] = gr.Checkbox(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
with gr.Row():
|
| 42 |
with gr.Column(scale=1):
|
|
|
|
| 34 |
scale=3,
|
| 35 |
allow_custom_value=True
|
| 36 |
)
|
| 37 |
+
with gr.Column(scale=1):
|
| 38 |
components[f'run_{prefix}'] = gr.Button("Run Outpaint", variant="primary")
|
| 39 |
+
components[f'run_forever_{prefix}'] = gr.Checkbox(
|
| 40 |
+
label="Run Forever",
|
| 41 |
+
value=False,
|
| 42 |
+
elem_classes=["run-forever-checkbox"]
|
| 43 |
+
)
|
| 44 |
|
| 45 |
with gr.Row():
|
| 46 |
with gr.Column(scale=1):
|
ui/shared/txt2img_ui.py
CHANGED
|
@@ -32,7 +32,11 @@ def create_ui():
|
|
| 32 |
)
|
| 33 |
with gr.Column(scale=1):
|
| 34 |
components[f'run_{prefix}'] = gr.Button("Run", variant="primary")
|
| 35 |
-
components[f'run_forever_{prefix}'] = gr.Checkbox(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
# Prompt fields
|
| 38 |
components[f'prompt_{prefix}'] = gr.Text(label="Prompt", lines=3)
|
|
|
|
| 32 |
)
|
| 33 |
with gr.Column(scale=1):
|
| 34 |
components[f'run_{prefix}'] = gr.Button("Run", variant="primary")
|
| 35 |
+
components[f'run_forever_{prefix}'] = gr.Checkbox(
|
| 36 |
+
label="Run Forever",
|
| 37 |
+
value=False,
|
| 38 |
+
elem_classes=["run-forever-checkbox"]
|
| 39 |
+
)
|
| 40 |
|
| 41 |
# Prompt fields
|
| 42 |
components[f'prompt_{prefix}'] = gr.Text(label="Prompt", lines=3)
|