JunchuanYu commited on
Commit
6a105ad
1 Parent(s): 8ae2a83

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +2 -2
run.py CHANGED
@@ -6,6 +6,7 @@ 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
 
@@ -43,8 +44,7 @@ S2 = (ee.ImageCollection('COPERNICUS/S2_SR')
43
  .median()
44
  .clip(region))
45
 
46
- pred = ee.Image("projects/useful-tempest-341103/assets/TPlake/pred")
47
-
48
  #
49
  def pred_mask(pred,threshold):
50
  mask=pred.where(pred.lt(threshold),0).where(pred.gte(threshold),1).toInt()
 
6
  import numpy as np
7
 
8
  my_data = os.environ.get('my_data')
9
+ my_image = os.environ.get('my_image')
10
 
11
  st.set_page_config(page_title="TPL MAPPING",layout="wide")
12
 
 
44
  .median()
45
  .clip(region))
46
 
47
+ pred = ee.Image(my_image)
 
48
  #
49
  def pred_mask(pred,threshold):
50
  mask=pred.where(pred.lt(threshold),0).where(pred.gte(threshold),1).toInt()