Spaces:
Runtime error
Runtime error
Commit
·
2b50844
1
Parent(s):
b0f11f1
update
Browse files
app.py
CHANGED
@@ -279,8 +279,8 @@ def main():
|
|
279 |
_, R_coverage, R_plot_area_cm2, R_save = st.columns([5,2,2,2])
|
280 |
img_gallery, img_main, img_seg, img_green, img_warp = st.columns([1,4,2,2,2])
|
281 |
|
282 |
-
st.session_state['dir_uploaded_images'] = os.path.join(st.session_state
|
283 |
-
st.session_state['dir_uploaded_images_small'] = os.path.join(st.session_state
|
284 |
uploaded_files = st.file_uploader("Upload Images", type=['jpg', 'jpeg'], accept_multiple_files=True, key=st.session_state['uploader_idk'])
|
285 |
if uploaded_files:
|
286 |
# Clear input image gallery and input list
|
@@ -427,12 +427,12 @@ if 'input_list_small' not in st.session_state:
|
|
427 |
st.session_state['input_list_small'] = []
|
428 |
|
429 |
if 'dir_uploaded_images' not in st.session_state:
|
430 |
-
st.session_state['dir_uploaded_images'] = os.path.join(st.session_state
|
431 |
-
validate_dir(os.path.join(st.session_state
|
432 |
|
433 |
if 'dir_uploaded_images_small' not in st.session_state:
|
434 |
-
st.session_state['dir_uploaded_images_small'] = os.path.join(st.session_state
|
435 |
-
validate_dir(os.path.join(st.session_state
|
436 |
|
437 |
|
438 |
st.title("GreenSight")
|
|
|
279 |
_, R_coverage, R_plot_area_cm2, R_save = st.columns([5,2,2,2])
|
280 |
img_gallery, img_main, img_seg, img_green, img_warp = st.columns([1,4,2,2,2])
|
281 |
|
282 |
+
st.session_state['dir_uploaded_images'] = os.path.join(st.session_state['dir_home'],'uploads')
|
283 |
+
st.session_state['dir_uploaded_images_small'] = os.path.join(st.session_state['dir_home'],'uploads_small')
|
284 |
uploaded_files = st.file_uploader("Upload Images", type=['jpg', 'jpeg'], accept_multiple_files=True, key=st.session_state['uploader_idk'])
|
285 |
if uploaded_files:
|
286 |
# Clear input image gallery and input list
|
|
|
427 |
st.session_state['input_list_small'] = []
|
428 |
|
429 |
if 'dir_uploaded_images' not in st.session_state:
|
430 |
+
st.session_state['dir_uploaded_images'] = os.path.join(st.session_state['dir_home'],'uploads')
|
431 |
+
validate_dir(os.path.join(st.session_state['dir_home'],'uploads'))
|
432 |
|
433 |
if 'dir_uploaded_images_small' not in st.session_state:
|
434 |
+
st.session_state['dir_uploaded_images_small'] = os.path.join(st.session_state['dir_home'],'uploads_small')
|
435 |
+
validate_dir(os.path.join(st.session_state['dir_home'],'uploads_small'))
|
436 |
|
437 |
|
438 |
st.title("GreenSight")
|