Spaces:
Runtime error
Runtime error
Commit
·
890a980
1
Parent(s):
21e5fc0
fix function arguments bug
Browse files
app.py
CHANGED
|
@@ -181,7 +181,14 @@ with gr.Blocks(css=css) as demo:
|
|
| 181 |
triggers=[run_button.click, prompt.submit],
|
| 182 |
fn=infer,
|
| 183 |
inputs=[
|
| 184 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
],
|
| 186 |
outputs=[generated_prompt],
|
| 187 |
)
|
|
@@ -191,12 +198,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 191 |
fn=generate_description_fn,
|
| 192 |
inputs=[
|
| 193 |
input_image,
|
| 194 |
-
seed,
|
| 195 |
-
randomize_seed,
|
| 196 |
-
width,
|
| 197 |
-
height,
|
| 198 |
-
guidance_scale,
|
| 199 |
-
num_inference_steps,
|
| 200 |
],
|
| 201 |
outputs=[result, seed],
|
| 202 |
)
|
|
|
|
| 181 |
triggers=[run_button.click, prompt.submit],
|
| 182 |
fn=infer,
|
| 183 |
inputs=[
|
| 184 |
+
prompt,
|
| 185 |
+
negative_prompt,
|
| 186 |
+
seed,
|
| 187 |
+
randomize_seed,
|
| 188 |
+
width,
|
| 189 |
+
height,
|
| 190 |
+
guidance_scale,
|
| 191 |
+
num_inference_steps,
|
| 192 |
],
|
| 193 |
outputs=[generated_prompt],
|
| 194 |
)
|
|
|
|
| 198 |
fn=generate_description_fn,
|
| 199 |
inputs=[
|
| 200 |
input_image,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 201 |
],
|
| 202 |
outputs=[result, seed],
|
| 203 |
)
|