Spaces:
Build error
Build error
hugforziio
commited on
Commit
•
3168fad
1
Parent(s):
1faf3dc
Update app.py
Browse files
app.py
CHANGED
@@ -93,12 +93,12 @@ with gr.Blocks(title="SD Models") as my_interface:
|
|
93 |
# gr.Markdown("""- Primary prompt: 你想画的内容(英文单词,如 a cat, 加英文逗号效果更好;点 Improve 按钮进行完善)\n- Real prompt: 完善后的提示词,出现后再点右边的 Run 按钮开始运行""")
|
94 |
with gr.Row():
|
95 |
with gr.Column(scale=6):
|
96 |
-
primary_prompt=gr.Textbox(label="Prompt")
|
97 |
# real_prompt=gr.Textbox(label="Real prompt")
|
98 |
with gr.Column(scale=6):
|
99 |
# improve_prompts_btn=gr.Button("Improve")
|
100 |
with gr.Row():
|
101 |
-
run=gr.Button("Run")
|
102 |
clear_btn=gr.Button("Clear")
|
103 |
with gr.Row():
|
104 |
sd_outputs = {}
|
@@ -124,6 +124,7 @@ with gr.Blocks(title="SD Models") as my_interface:
|
|
124 |
every=1,
|
125 |
show_progress=False)
|
126 |
|
|
|
127 |
run.click(all_task_start, None, [start_box, end_box, tog_box])
|
128 |
runs_dict = {}
|
129 |
model_idx = 1
|
|
|
93 |
# gr.Markdown("""- Primary prompt: 你想画的内容(英文单词,如 a cat, 加英文逗号效果更好;点 Improve 按钮进行完善)\n- Real prompt: 完善后的提示词,出现后再点右边的 Run 按钮开始运行""")
|
94 |
with gr.Row():
|
95 |
with gr.Column(scale=6):
|
96 |
+
primary_prompt=gr.Textbox(label="Prompt", value="happy dogs")
|
97 |
# real_prompt=gr.Textbox(label="Real prompt")
|
98 |
with gr.Column(scale=6):
|
99 |
# improve_prompts_btn=gr.Button("Improve")
|
100 |
with gr.Row():
|
101 |
+
run=gr.Button("Run",variant="primary")
|
102 |
clear_btn=gr.Button("Clear")
|
103 |
with gr.Row():
|
104 |
sd_outputs = {}
|
|
|
124 |
every=1,
|
125 |
show_progress=False)
|
126 |
|
127 |
+
primary_prompt.submit(all_task_start, None, [start_box, end_box, tog_box])
|
128 |
run.click(all_task_start, None, [start_box, end_box, tog_box])
|
129 |
runs_dict = {}
|
130 |
model_idx = 1
|