UjjwalKGupta commited on
Commit
abbf4aa
·
verified ·
1 Parent(s): 44aadb9

Cut page to content

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -418,6 +418,7 @@ if uploaded_file is not None and submit_button:
418
  # Display the map and allow interactions without triggering reruns
419
  with st.container():
420
  st_folium(st.session_state["map"], width=725, returned_objects=[])
 
421
  else:
422
  # Failed to find any Sentinel-2 Image in given period
423
  st.write("No Sentinel-2 Imagery found for the given period.")
@@ -427,3 +428,6 @@ if uploaded_file is not None and submit_button:
427
  st.write('ValueError: "Input must have single polygon geometry"')
428
  st.write(gdf)
429
  st.stop()
 
 
 
 
418
  # Display the map and allow interactions without triggering reruns
419
  with st.container():
420
  st_folium(st.session_state["map"], width=725, returned_objects=[])
421
+ st.stop()
422
  else:
423
  # Failed to find any Sentinel-2 Image in given period
424
  st.write("No Sentinel-2 Imagery found for the given period.")
 
428
  st.write('ValueError: "Input must have single polygon geometry"')
429
  st.write(gdf)
430
  st.stop()
431
+
432
+ # Cut the "infinite" html page to the content
433
+ st.stop()