Update app.py
Browse files
app.py
CHANGED
|
@@ -117,14 +117,12 @@ def main():
|
|
| 117 |
return run_inference(input_image, model)
|
| 118 |
# Create Gradio Tabs
|
| 119 |
with gr.Blocks() as demo:
|
| 120 |
-
gr.
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
output = gr.JSON(label="Classification Result")
|
| 127 |
-
input_image.change(fn=gradio_interface, inputs=input_image, outputs=output)
|
| 128 |
# Launch the Gradio app
|
| 129 |
demo.launch()
|
| 130 |
|
|
|
|
| 117 |
return run_inference(input_image, model)
|
| 118 |
# Create Gradio Tabs
|
| 119 |
with gr.Blocks() as demo:
|
| 120 |
+
with gr.Row():
|
| 121 |
+
with gr.Column():
|
| 122 |
+
input_image = gr.Image(type="pil", label="Upload Image")
|
| 123 |
+
with gr.Column():
|
| 124 |
+
output = gr.JSON(label="Classification Result")
|
| 125 |
+
input_image.change(fn=gradio_interface, inputs=input_image, outputs=output)
|
|
|
|
|
|
|
| 126 |
# Launch the Gradio app
|
| 127 |
demo.launch()
|
| 128 |
|