Spaces:
Sleeping
Sleeping
rmm
commited on
Commit
·
1021b6c
1
Parent(s):
a068827
chore: clean up function naming
Browse files- src/classifier/classifier_image.py +1 -1
- src/main.py +2 -2
- src/maps/obs_map.py +2 -2
src/classifier/classifier_image.py
CHANGED
@@ -12,7 +12,7 @@ from utils.grid_maker import gridder
|
|
12 |
from utils.metadata_handler import metadata2md
|
13 |
from input.input_observation import InputObservation
|
14 |
|
15 |
-
def
|
16 |
"""
|
17 |
Add brief explainer text about cetacean classification to the tab
|
18 |
"""
|
|
|
12 |
from utils.metadata_handler import metadata2md
|
13 |
from input.input_observation import InputObservation
|
14 |
|
15 |
+
def add_classifier_header() -> None:
|
16 |
"""
|
17 |
Add brief explainer text about cetacean classification to the tab
|
18 |
"""
|
src/main.py
CHANGED
@@ -9,8 +9,8 @@ from streamlit_folium import st_folium
|
|
9 |
from transformers import pipeline
|
10 |
from transformers import AutoModelForImageClassification
|
11 |
|
12 |
-
from maps.obs_map import
|
13 |
-
from classifier.classifier_image import
|
14 |
from datasets import disable_caching
|
15 |
disable_caching()
|
16 |
|
|
|
9 |
from transformers import pipeline
|
10 |
from transformers import AutoModelForImageClassification
|
11 |
|
12 |
+
from maps.obs_map import add_obs_map_header
|
13 |
+
from classifier.classifier_image import add_classifier_header
|
14 |
from datasets import disable_caching
|
15 |
disable_caching()
|
16 |
|
src/maps/obs_map.py
CHANGED
@@ -192,8 +192,8 @@ def present_obs_map(dataset_id:str = "Saving-Willy/Happywhale-kaggle",
|
|
192 |
return st_data
|
193 |
|
194 |
|
195 |
-
def
|
196 |
"""
|
197 |
Add brief explainer text to the tab
|
198 |
"""
|
199 |
-
st.write("A map showing the observations in the dataset, with markers colored by species.")
|
|
|
192 |
return st_data
|
193 |
|
194 |
|
195 |
+
def add_obs_map_header() -> None:
|
196 |
"""
|
197 |
Add brief explainer text to the tab
|
198 |
"""
|
199 |
+
st.write("A map showing the observations in the dataset, with markers colored by species.")
|