Update app.py
Browse files
app.py
CHANGED
@@ -38,28 +38,16 @@ c1, c2, c3 = st.columns([0.2, 0.6, 0.2])
|
|
38 |
|
39 |
file_str=c2.text_input(label='URL to GeoTIFF file', value='')
|
40 |
if file_str:
|
41 |
-
filepath = 'example.
|
42 |
-
|
43 |
-
image = h
|
44 |
|
45 |
|
46 |
-
image = load_img(image)
|
47 |
-
image = img_to_array(image).astype('float')/255
|
48 |
|
49 |
-
|
50 |
-
|
51 |
-
pass
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
file = c2.file_uploader(label='Upload GeoTIFF file')
|
57 |
-
|
58 |
-
my_bar = c2.progress(0)
|
59 |
-
|
60 |
-
if file == None:
|
61 |
-
pass
|
62 |
-
else:
|
63 |
|
64 |
geo_tiff = GeoTiff(file)
|
65 |
|
@@ -211,3 +199,7 @@ else:
|
|
211 |
|
212 |
else:
|
213 |
print('No defect trees found')
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
file_str=c2.text_input(label='URL to GeoTIFF file', value='')
|
40 |
if file_str:
|
41 |
+
filepath = 'example.tif'
|
42 |
+
file = wget.download(file_str, out=filepath)
|
|
|
43 |
|
44 |
|
|
|
|
|
45 |
|
46 |
+
#image = load_img(file)
|
47 |
+
#image = img_to_array(image).astype('float')/255
|
|
|
48 |
|
49 |
+
#st.image(image)
|
50 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
geo_tiff = GeoTiff(file)
|
53 |
|
|
|
199 |
|
200 |
else:
|
201 |
print('No defect trees found')
|
202 |
+
|
203 |
+
|
204 |
+
else:
|
205 |
+
pass
|