Hermes Bot commited on
Commit
5ece202
·
1 Parent(s): b178bbd

Add Run Forever checkbox below Run button for all tabs

Browse files
ui/shared/hires_fix_ui.py CHANGED
@@ -34,8 +34,9 @@ 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 Hires. Fix", variant="primary")
 
39
 
40
  with gr.Row():
41
  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 Hires. Fix", variant="primary")
39
+ components[f'run_forever_{prefix}'] = gr.Checkbox(label="Run Forever", value=False)
40
 
41
  with gr.Row():
42
  with gr.Column(scale=1):
ui/shared/img2img_ui.py CHANGED
@@ -30,6 +30,7 @@ def create_ui():
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
 
34
  with gr.Row():
35
  with gr.Column(scale=1):
 
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(label="Run Forever", value=False)
34
 
35
  with gr.Row():
36
  with gr.Column(scale=1):
ui/shared/inpaint_ui.py CHANGED
@@ -34,8 +34,9 @@ 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 Inpaint", variant="primary")
 
39
 
40
  components[f'model_and_run_row_{prefix}'] = [arch_row, model_and_run_row]
41
 
 
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(label="Run Forever", value=False)
40
 
41
  components[f'model_and_run_row_{prefix}'] = [arch_row, model_and_run_row]
42
 
ui/shared/outpaint_ui.py CHANGED
@@ -34,8 +34,9 @@ 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
 
40
  with gr.Row():
41
  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(label="Run Forever", value=False)
40
 
41
  with gr.Row():
42
  with gr.Column(scale=1):
ui/shared/txt2img_ui.py CHANGED
@@ -32,6 +32,7 @@ def create_ui():
32
  )
33
  with gr.Column(scale=1):
34
  components[f'run_{prefix}'] = gr.Button("Run", variant="primary")
 
35
 
36
  # Prompt fields
37
  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(label="Run Forever", value=False)
36
 
37
  # Prompt fields
38
  components[f'prompt_{prefix}'] = gr.Text(label="Prompt", lines=3)