Spaces:
Running
on
Zero
Running
on
Zero
fixes double commas typos
Browse files
app.py
CHANGED
|
@@ -460,7 +460,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 460 |
run_button.click( # Clear the result
|
| 461 |
fn=clear_result,
|
| 462 |
inputs=None,
|
| 463 |
-
outputs=result
|
| 464 |
show_api=False
|
| 465 |
).then( # Generate the new image
|
| 466 |
fn=infer,
|
|
@@ -471,19 +471,19 @@ with gr.Blocks(css=css) as demo:
|
|
| 471 |
).then( # Update the history gallery
|
| 472 |
fn=lambda x, history: update_history(x[1], history),
|
| 473 |
inputs=[result, history_gallery],
|
| 474 |
-
outputs=history_gallery
|
| 475 |
show_api=False
|
| 476 |
).then( # Show the "Use as Input Image" button
|
| 477 |
fn=lambda: gr.update(visible=True),
|
| 478 |
inputs=None,
|
| 479 |
-
outputs=use_as_input_button
|
| 480 |
show_api=False
|
| 481 |
)
|
| 482 |
|
| 483 |
prompt_input.submit( # Clear the result
|
| 484 |
fn=clear_result,
|
| 485 |
inputs=None,
|
| 486 |
-
outputs=result
|
| 487 |
show_api=False
|
| 488 |
).then( # Generate the new image
|
| 489 |
fn=infer,
|
|
@@ -494,12 +494,12 @@ with gr.Blocks(css=css) as demo:
|
|
| 494 |
).then( # Update the history gallery
|
| 495 |
fn=lambda x, history: update_history(x[1], history),
|
| 496 |
inputs=[result, history_gallery],
|
| 497 |
-
outputs=history_gallery
|
| 498 |
show_api=False
|
| 499 |
).then( # Show the "Use as Input Image" button
|
| 500 |
fn=lambda: gr.update(visible=True),
|
| 501 |
inputs=None,
|
| 502 |
-
outputs=use_as_input_button
|
| 503 |
show_api=False
|
| 504 |
)
|
| 505 |
|
|
|
|
| 460 |
run_button.click( # Clear the result
|
| 461 |
fn=clear_result,
|
| 462 |
inputs=None,
|
| 463 |
+
outputs=result,
|
| 464 |
show_api=False
|
| 465 |
).then( # Generate the new image
|
| 466 |
fn=infer,
|
|
|
|
| 471 |
).then( # Update the history gallery
|
| 472 |
fn=lambda x, history: update_history(x[1], history),
|
| 473 |
inputs=[result, history_gallery],
|
| 474 |
+
outputs=history_gallery,
|
| 475 |
show_api=False
|
| 476 |
).then( # Show the "Use as Input Image" button
|
| 477 |
fn=lambda: gr.update(visible=True),
|
| 478 |
inputs=None,
|
| 479 |
+
outputs=use_as_input_button,
|
| 480 |
show_api=False
|
| 481 |
)
|
| 482 |
|
| 483 |
prompt_input.submit( # Clear the result
|
| 484 |
fn=clear_result,
|
| 485 |
inputs=None,
|
| 486 |
+
outputs=result,
|
| 487 |
show_api=False
|
| 488 |
).then( # Generate the new image
|
| 489 |
fn=infer,
|
|
|
|
| 494 |
).then( # Update the history gallery
|
| 495 |
fn=lambda x, history: update_history(x[1], history),
|
| 496 |
inputs=[result, history_gallery],
|
| 497 |
+
outputs=history_gallery,
|
| 498 |
show_api=False
|
| 499 |
).then( # Show the "Use as Input Image" button
|
| 500 |
fn=lambda: gr.update(visible=True),
|
| 501 |
inputs=None,
|
| 502 |
+
outputs=use_as_input_button,
|
| 503 |
show_api=False
|
| 504 |
)
|
| 505 |
|