Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -144,24 +144,24 @@ with gr.Blocks(css=css, theme=gr.themes.Soft(primary_hue="violet")) as demo:
|
|
| 144 |
tab_inspire.select(lambda: ("inspire", gr.update(value=True)), outputs=[current_mode, randomize_seed])
|
| 145 |
|
| 146 |
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
|
| 166 |
demo.queue().launch()
|
| 167 |
|
|
|
|
| 144 |
tab_inspire.select(lambda: ("inspire", gr.update(value=True)), outputs=[current_mode, randomize_seed])
|
| 145 |
|
| 146 |
|
| 147 |
+
submit_btn.click(
|
| 148 |
+
fn=infer,
|
| 149 |
+
inputs=[
|
| 150 |
+
prompt_generate,
|
| 151 |
+
prompt_refine,
|
| 152 |
+
prompt_inspire_image,
|
| 153 |
+
prompt_in_json,
|
| 154 |
+
negative_prompt,
|
| 155 |
+
seed,
|
| 156 |
+
randomize_seed,
|
| 157 |
+
width,
|
| 158 |
+
height,
|
| 159 |
+
guidance_scale,
|
| 160 |
+
num_inference_steps,
|
| 161 |
+
current_mode,
|
| 162 |
+
],
|
| 163 |
+
outputs=[result, seed, prompt_in_json, negative_prompt_json, structured_accordion],
|
| 164 |
+
)
|
| 165 |
|
| 166 |
demo.queue().launch()
|
| 167 |
|