mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
Block-Events
- random commit
This commit is contained in:
parent
aa446fc4a5
commit
d6bfd7c682
@ -31,8 +31,12 @@ with xray_blocks:
|
||||
with gr.Row():
|
||||
ct_scan = gr.inputs.Image()
|
||||
ct_results = gr.outputs.JSON()
|
||||
second_output = gr.outputs.JSON()
|
||||
ct_run = gr.Button("Run")
|
||||
button_2 = gr.Button("Second Run")
|
||||
|
||||
ct_run.click(ct_model, inputs=[disease, ct_scan], outputs=ct_results)
|
||||
button_2.click(ct_model, inputs=[ct_results], outputs=second_output)
|
||||
|
||||
overall_probability = gr.outputs.Textbox()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user