Update app.py
Browse files
app.py
CHANGED
|
@@ -326,7 +326,13 @@ with gr.Blocks(title="PixAI Tagger v0.9 ONNX") as demo:
|
|
| 326 |
fn=fetch_image_from_url,
|
| 327 |
inputs=[url_input],
|
| 328 |
outputs=[input_img]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 329 |
)
|
|
|
|
|
|
|
| 330 |
run_btn.click(
|
| 331 |
fn=run_inference,
|
| 332 |
inputs=[input_img, gen_slider, char_slider, map_checkbox],
|
|
|
|
| 326 |
fn=fetch_image_from_url,
|
| 327 |
inputs=[url_input],
|
| 328 |
outputs=[input_img]
|
| 329 |
+
).then(
|
| 330 |
+
fn=run_inference,
|
| 331 |
+
inputs=[input_img, gen_slider, char_slider, map_checkbox],
|
| 332 |
+
outputs=[char_box, ip_box, gen_box, char_plot, gen_plot, time_info]
|
| 333 |
)
|
| 334 |
+
|
| 335 |
+
# Standard Upload Button Logic
|
| 336 |
run_btn.click(
|
| 337 |
fn=run_inference,
|
| 338 |
inputs=[input_img, gen_slider, char_slider, map_checkbox],
|