Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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():
|
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,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():
|
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)
|