Spaces:
Running
Running
phyloforfun
commited on
Commit
•
e2ca725
1
Parent(s):
e729f97
refactor
Browse files
app.py
CHANGED
@@ -418,6 +418,7 @@ def use_test_image():
|
|
418 |
st.session_state.config['leafmachine']['project']['dir_images_local'] = os.path.join(st.session_state.dir_home,'demo','demo_images')
|
419 |
n_images = len([f for f in os.listdir(st.session_state.config['leafmachine']['project']['dir_images_local']) if os.path.isfile(os.path.join(st.session_state.config['leafmachine']['project']['dir_images_local'], f))])
|
420 |
st.session_state['processing_add_on'] = f" {n_images} Images"
|
|
|
421 |
|
422 |
|
423 |
|
@@ -1134,7 +1135,7 @@ def content_tab_settings():
|
|
1134 |
n_images = len([f for f in os.listdir(st.session_state.config['leafmachine']['project']['dir_images_local']) if os.path.isfile(os.path.join(st.session_state.config['leafmachine']['project']['dir_images_local'], f))])
|
1135 |
st.session_state['processing_add_on'] = f" {n_images} Images"
|
1136 |
uploaded_files = None
|
1137 |
-
st.info(f"Processing
|
1138 |
|
1139 |
st.button("Use Test Image",help="This will clear any uploaded images and load the 1 provided test image.",on_click=use_test_image)
|
1140 |
|
|
|
418 |
st.session_state.config['leafmachine']['project']['dir_images_local'] = os.path.join(st.session_state.dir_home,'demo','demo_images')
|
419 |
n_images = len([f for f in os.listdir(st.session_state.config['leafmachine']['project']['dir_images_local']) if os.path.isfile(os.path.join(st.session_state.config['leafmachine']['project']['dir_images_local'], f))])
|
420 |
st.session_state['processing_add_on'] = f" {n_images} Images"
|
421 |
+
clear_image_gallery()
|
422 |
|
423 |
|
424 |
|
|
|
1135 |
n_images = len([f for f in os.listdir(st.session_state.config['leafmachine']['project']['dir_images_local']) if os.path.isfile(os.path.join(st.session_state.config['leafmachine']['project']['dir_images_local'], f))])
|
1136 |
st.session_state['processing_add_on'] = f" {n_images} Images"
|
1137 |
uploaded_files = None
|
1138 |
+
st.info(f"Processing *{n_images}* images from {st.session_state.config['leafmachine']['project']['dir_images_local']}")
|
1139 |
|
1140 |
st.button("Use Test Image",help="This will clear any uploaded images and load the 1 provided test image.",on_click=use_test_image)
|
1141 |
|