Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,25 +52,16 @@ def process_input_image(image_source):
|
|
52 |
my_app = gr.Blocks()
|
53 |
|
54 |
with my_app:
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
process_input_image,
|
67 |
-
[
|
68 |
-
img_source
|
69 |
-
],
|
70 |
-
[
|
71 |
-
output_label,
|
72 |
-
img_output
|
73 |
-
]
|
74 |
-
)
|
75 |
|
76 |
my_app.launch(debug=True,share=True)
|
|
|
52 |
my_app = gr.Blocks()
|
53 |
|
54 |
with my_app:
|
55 |
+
gr.Markdown("Statellite Image Segmentation Application UI with Gradio")
|
56 |
+
with gr.Tabs():
|
57 |
+
with gr.TabItem("Select your image"):
|
58 |
+
with gr.Row():
|
59 |
+
with gr.Column():
|
60 |
+
img_source = gr.Image(label="Please select source Image", shape=(256, 256))
|
61 |
+
source_image_loader = gr.Button("Load above Image")
|
62 |
+
with gr.Column():
|
63 |
+
output_label = gr.Label(label="Image Info")
|
64 |
+
img_output = gr.Image(label="Image Output")
|
65 |
+
source_image_loader.click(process_input_image,[img_source],[output_label,img_output])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
my_app.launch(debug=True,share=True)
|