Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -125,9 +125,9 @@ if __name__ == '__main__':
|
|
125 |
with gr.Row():
|
126 |
with gr.Column():
|
127 |
image_input = gr.Image(type='pil', label='Input image')
|
128 |
-
|
129 |
json_output = gr.JSON(label='Output')
|
130 |
-
|
131 |
gr.Examples(examples=examples, inputs=image_input)
|
132 |
gr.HTML(article)
|
133 |
demo.launch()
|
|
|
125 |
with gr.Row():
|
126 |
with gr.Column():
|
127 |
image_input = gr.Image(type='pil', label='Input image')
|
128 |
+
submit_button = gr.Button('Submit')
|
129 |
json_output = gr.JSON(label='Output')
|
130 |
+
submit_button.click(predict, inputs=image_input, outputs=json_output)
|
131 |
gr.Examples(examples=examples, inputs=image_input)
|
132 |
gr.HTML(article)
|
133 |
demo.launch()
|