Spaces:
Runtime error
Runtime error
Commit
·
595d8f1
1
Parent(s):
4fd550d
update
Browse files
app.py
CHANGED
@@ -410,5 +410,26 @@ st.set_page_config(layout="wide", page_title='GreenSight')
|
|
410 |
if 'dir_home' not in st.session_state:
|
411 |
st.session_state['dir_home'] = os.path.dirname(__file__)
|
412 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
413 |
st.title("GreenSight")
|
414 |
main()
|
|
|
410 |
if 'dir_home' not in st.session_state:
|
411 |
st.session_state['dir_home'] = os.path.dirname(__file__)
|
412 |
|
413 |
+
if 'processing_add_on' not in st.session_state:
|
414 |
+
st.session_state['processing_add_on'] = ' 1 Image'
|
415 |
+
|
416 |
+
if 'uploader_idk' not in st.session_state:
|
417 |
+
st.session_state['uploader_idk'] = 1
|
418 |
+
|
419 |
+
if 'input_list' not in st.session_state:
|
420 |
+
st.session_state['input_list'] = []
|
421 |
+
|
422 |
+
if 'input_list_small' not in st.session_state:
|
423 |
+
st.session_state['input_list_small'] = []
|
424 |
+
|
425 |
+
if 'dir_uploaded_images' not in st.session_state:
|
426 |
+
st.session_state['dir_uploaded_images'] = os.path.join(st.session_state.dir_home,'uploads')
|
427 |
+
validate_dir(os.path.join(st.session_state.dir_home,'uploads'))
|
428 |
+
|
429 |
+
if 'dir_uploaded_images_small' not in st.session_state:
|
430 |
+
st.session_state['dir_uploaded_images_small'] = os.path.join(st.session_state.dir_home,'uploads_small')
|
431 |
+
validate_dir(os.path.join(st.session_state.dir_home,'uploads_small'))
|
432 |
+
|
433 |
+
|
434 |
st.title("GreenSight")
|
435 |
main()
|