Jonny001 commited on
Commit
1952968
·
verified ·
1 Parent(s): 3283923

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -65,9 +65,9 @@ def clear_fn():
65
  with gr.Blocks(title="SD Models") as my_interface:
66
  with gr.Column():
67
  with gr.Row():
68
- with gr.Column(): # Use Column instead of Row with scale
69
  primary_prompt = gr.Textbox(label="Prompt", value="")
70
- with gr.Column(): # Use Column instead of Row with scale
71
  with gr.Row():
72
  run = gr.Button("Run", variant="primary")
73
  clear_btn = gr.Button("Clear")
@@ -76,7 +76,7 @@ with gr.Blocks(title="SD Models") as my_interface:
76
  model_idx = 1
77
  for model_path in models:
78
  with gr.Column(scale=3, min_width=200):
79
- with gr.Group(): # Changed from gr.Box() to gr.Group()
80
  sd_outputs[model_idx] = gr.Image(label=model_path)
81
  pass
82
  model_idx += 1
@@ -112,5 +112,4 @@ with gr.Blocks(title="SD Models") as my_interface:
112
  tog_box,
113
  cancels=[*list(runs_dict.values())])
114
 
115
- my_interface.queue(concurrency_count=100, status_update_rate=1)
116
  my_interface.launch(inline=True, show_api=False)
 
65
  with gr.Blocks(title="SD Models") as my_interface:
66
  with gr.Column():
67
  with gr.Row():
68
+ with gr.Column():
69
  primary_prompt = gr.Textbox(label="Prompt", value="")
70
+ with gr.Column():
71
  with gr.Row():
72
  run = gr.Button("Run", variant="primary")
73
  clear_btn = gr.Button("Clear")
 
76
  model_idx = 1
77
  for model_path in models:
78
  with gr.Column(scale=3, min_width=200):
79
+ with gr.Group():
80
  sd_outputs[model_idx] = gr.Image(label=model_path)
81
  pass
82
  model_idx += 1
 
112
  tog_box,
113
  cancels=[*list(runs_dict.values())])
114
 
 
115
  my_interface.launch(inline=True, show_api=False)