Paolo-Fraccaro commited on
Commit
487df41
1 Parent(s): d528c1b

move button

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -200,14 +200,16 @@ with gr.Blocks() as demo:
200
  inp = gr.File()
201
  btn = gr.Button("Submit")
202
 
203
- btn.click(fn=func, inputs=inp, outputs=[out1, out2])
204
  with gr.Row():
205
  gr.Markdown(value='### Input color composite (SWIR, NIRa, Red)')
206
  gr.Markdown(value='### Model prediction (Black: No burn scar; White: Burn scar)')
 
207
  with gr.Row():
208
  out1=gr.Image(image_mode='RGB')
209
  out2 = gr.Image(image_mode='L')
210
-
 
 
211
  with gr.Row():
212
  gr.Examples(examples=["subsetted_512x512_HLS.S30.T10TGS.2020245.v1.4_merged.tif",
213
  "subsetted_512x512_HLS.S30.T10TGS.2018285.v1.4_merged.tif",
 
200
  inp = gr.File()
201
  btn = gr.Button("Submit")
202
 
 
203
  with gr.Row():
204
  gr.Markdown(value='### Input color composite (SWIR, NIRa, Red)')
205
  gr.Markdown(value='### Model prediction (Black: No burn scar; White: Burn scar)')
206
+
207
  with gr.Row():
208
  out1=gr.Image(image_mode='RGB')
209
  out2 = gr.Image(image_mode='L')
210
+
211
+ btn.click(fn=func, inputs=inp, outputs=[out1, out2])
212
+
213
  with gr.Row():
214
  gr.Examples(examples=["subsetted_512x512_HLS.S30.T10TGS.2020245.v1.4_merged.tif",
215
  "subsetted_512x512_HLS.S30.T10TGS.2018285.v1.4_merged.tif",