Update app.py
Browse files
app.py
CHANGED
@@ -31,13 +31,13 @@ def predict(lat, lon):
|
|
31 |
result = polygon.contains(point1)
|
32 |
|
33 |
if not result:
|
34 |
-
return "
|
35 |
|
36 |
else:
|
37 |
df = pd.read_csv("data/frame.csv")
|
38 |
name = find_good_tile(df,point2)
|
39 |
if name ==404:
|
40 |
-
reponse = "Sentinel-2
|
41 |
return reponse,"","","",""
|
42 |
else:
|
43 |
path = "https://data354-public-assets.s3.eu-west-3.amazonaws.com/cisentineldata/"
|
|
|
31 |
result = polygon.contains(point1)
|
32 |
|
33 |
if not result:
|
34 |
+
return "Choose an area of ivory coast","","","",""
|
35 |
|
36 |
else:
|
37 |
df = pd.read_csv("data/frame.csv")
|
38 |
name = find_good_tile(df,point2)
|
39 |
if name ==404:
|
40 |
+
reponse = "Sentinel-2 does not have data on this location to date"
|
41 |
return reponse,"","","",""
|
42 |
else:
|
43 |
path = "https://data354-public-assets.s3.eu-west-3.amazonaws.com/cisentineldata/"
|