Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ my_app = gr.Blocks()
|
|
| 42 |
with my_app:
|
| 43 |
gr.Markdown("Statellite Image Segmentation Application UI with Gradio")
|
| 44 |
with gr.Tabs():
|
| 45 |
-
|
| 46 |
with gr.Row():
|
| 47 |
with gr.Column():
|
| 48 |
img_source = gr.Image(label="Please select source Image", shape=(256, 256))
|
|
@@ -51,14 +51,14 @@ with my_app:
|
|
| 51 |
output_label = gr.Label(label="Image Info")
|
| 52 |
img_output = gr.Image(label="Image Output")
|
| 53 |
source_image_loader.click(
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
|
| 64 |
my_app.launch(debug=True)
|
|
|
|
| 42 |
with my_app:
|
| 43 |
gr.Markdown("Statellite Image Segmentation Application UI with Gradio")
|
| 44 |
with gr.Tabs():
|
| 45 |
+
with gr.TabItem ("Select your image"):
|
| 46 |
with gr.Row():
|
| 47 |
with gr.Column():
|
| 48 |
img_source = gr.Image(label="Please select source Image", shape=(256, 256))
|
|
|
|
| 51 |
output_label = gr.Label(label="Image Info")
|
| 52 |
img_output = gr.Image(label="Image Output")
|
| 53 |
source_image_loader.click(
|
| 54 |
+
process_input_image,
|
| 55 |
+
[
|
| 56 |
+
img_source
|
| 57 |
+
],
|
| 58 |
+
[
|
| 59 |
+
output_label,
|
| 60 |
+
img_output
|
| 61 |
+
]
|
| 62 |
+
)
|
| 63 |
|
| 64 |
my_app.launch(debug=True)
|