JunchuanYu commited on
Commit
8ae2a83
1 Parent(s): 0b6b42c

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +4 -2
run.py CHANGED
@@ -5,6 +5,8 @@ import streamlit as st
5
  import pandas as pd
6
  import numpy as np
7
 
 
 
8
  st.set_page_config(page_title="TPL MAPPING",layout="wide")
9
 
10
  st.markdown("""
@@ -20,7 +22,7 @@ row1_col1, row1_col2, row1_col3 = st.columns([6, 2,1])
20
 
21
  Map = geemap.Map()
22
 
23
- region = ee.FeatureCollection("projects/useful-tempest-341103/assets/water/TPBoundary")
24
 
25
  datastart='2021-06-01'
26
  dataend='2021-10-15'
@@ -57,7 +59,7 @@ with row1_col3:
57
  This web [app](https://junchuanyu-ldtp.hf.space) is maintained by [Junchuan Yu](https://junchuanyu.netlify.app/posts/). You can follow me on social media:
58
  [GitHub](https://github.com/JunchuanYu) | [Zhihu](https://twitter.com/giswqs) .
59
 
60
- Sentinel-2 is used as the data, and 8-band images are used as training data (B4, B3, B2, B8, B11, B12, MNDWI, SDWI). The model uses a multi-scale deep neural network model based on transfer learning, and is implemented using otop technology
61
  """
62
  )
63
  st.sidebar.title("Contect")
 
5
  import pandas as pd
6
  import numpy as np
7
 
8
+ my_data = os.environ.get('my_data')
9
+
10
  st.set_page_config(page_title="TPL MAPPING",layout="wide")
11
 
12
  st.markdown("""
 
22
 
23
  Map = geemap.Map()
24
 
25
+ region = ee.FeatureCollection(my_data)
26
 
27
  datastart='2021-06-01'
28
  dataend='2021-10-15'
 
59
  This web [app](https://junchuanyu-ldtp.hf.space) is maintained by [Junchuan Yu](https://junchuanyu.netlify.app/posts/). You can follow me on social media:
60
  [GitHub](https://github.com/JunchuanYu) | [Zhihu](https://twitter.com/giswqs) .
61
 
62
+ An 8-band combination (B4, B3, B2, B8, B11, B12, MNDWI, SDWI) of Sentinel-2 and Sentinel-1 was used for training and lake extraction. The model uses a multi-scale deep neural network based on transfer learning and is implemented using OTOP technology
63
  """
64
  )
65
  st.sidebar.title("Contect")