Spaces:
Runtime error
Runtime error
Alexander Bagus
commited on
Commit
·
40779bf
1
Parent(s):
fe208e4
22
Browse files
app.py
CHANGED
|
@@ -176,20 +176,13 @@ with gr.Blocks() as demo:
|
|
| 176 |
with gr.Accordion("Preprocessor output", open=False):
|
| 177 |
control_image = gr.Image(label="Control image", show_label=False)
|
| 178 |
|
| 179 |
-
|
| 180 |
-
|
| 181 |
gr.Examples(examples=examples, inputs=[input_image, prompt, control_mode])
|
| 182 |
gr.Markdown(read_file("static/footer.md"))
|
| 183 |
|
| 184 |
run_button.click(
|
| 185 |
-
fn=prepare,
|
| 186 |
-
inputs=[prompt, is_polish_prompt],
|
| 187 |
-
outputs=[polished_prompt, is_polish_prompt]
|
| 188 |
-
# outputs=gr.State(), # Pass to the next function, not to UI at this step
|
| 189 |
-
).then(
|
| 190 |
fn=inference,
|
| 191 |
inputs=[
|
| 192 |
-
|
| 193 |
negative_prompt,
|
| 194 |
seed,
|
| 195 |
randomize_seed,
|
|
|
|
| 176 |
with gr.Accordion("Preprocessor output", open=False):
|
| 177 |
control_image = gr.Image(label="Control image", show_label=False)
|
| 178 |
|
|
|
|
|
|
|
| 179 |
gr.Examples(examples=examples, inputs=[input_image, prompt, control_mode])
|
| 180 |
gr.Markdown(read_file("static/footer.md"))
|
| 181 |
|
| 182 |
run_button.click(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
fn=inference,
|
| 184 |
inputs=[
|
| 185 |
+
prompt,
|
| 186 |
negative_prompt,
|
| 187 |
seed,
|
| 188 |
randomize_seed,
|