Ahm-ed commited on
Commit
5a94613
·
1 Parent(s): 19d639b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -20
app.py CHANGED
@@ -52,25 +52,16 @@ def process_input_image(image_source):
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(
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)