vancauwe commited on
Commit
84afa3b
·
1 Parent(s): c3c6d46

feat: new color palette

Browse files
.streamlit/config.toml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ [theme]
2
+ primaryColor="#2CA3DF"
3
+ backgroundColor="#0F418C"
4
+ secondaryBackgroundColor="#0A326D"
5
+ textColor="#F5F7FA"
6
+ font="sans serif"
src/classifier/classifier_image.py CHANGED
@@ -116,7 +116,8 @@ def cetacean_show_results_and_review() -> None:
116
 
117
  #st.button(f"Upload observation {str(o)} to THE INTERNET!", on_click=push_observations)
118
  # TODO: the metadata only fills properly if `validate` was clicked.
119
- st.markdown(metadata2md(hash, debug=True))
 
120
 
121
  msg = f"[D] full observation after inference: {observation}"
122
  g_logger.debug(msg)
 
116
 
117
  #st.button(f"Upload observation {str(o)} to THE INTERNET!", on_click=push_observations)
118
  # TODO: the metadata only fills properly if `validate` was clicked.
119
+ # TODO put condition on the debug
120
+ st.markdown(metadata2md(hash, debug=False))
121
 
122
  msg = f"[D] full observation after inference: {observation}"
123
  g_logger.debug(msg)
src/utils/metadata_handler.py CHANGED
@@ -11,6 +11,7 @@ def metadata2md(image_hash:str, debug:bool=False) -> str:
11
  str: Markdown-formatted key-value list of metadata
12
 
13
  """
 
14
  markdown_str = "\n"
15
  keys_to_print = ["author_email", "latitude", "longitude", "date", "time"]
16
  if debug:
 
11
  str: Markdown-formatted key-value list of metadata
12
 
13
  """
14
+ print(debug)
15
  markdown_str = "\n"
16
  keys_to_print = ["author_email", "latitude", "longitude", "date", "time"]
17
  if debug: