ercanburak commited on
Commit
18319a3
·
1 Parent(s): d27edfe

print headers by default, do not print with query string

Browse files
Files changed (1) hide show
  1. app.py +17 -12
app.py CHANGED
@@ -5,17 +5,20 @@ import streamlit as st
5
 
6
  from utils import get_configs, get_display_names, get_path_for_viz, get_text_str, get_meta_path
7
 
8
- # st.header("EVREAL - Event-based Video Reconstruction Evaluation and Analysis Library")
9
- #
10
- # paper_link = "https://arxiv.org/abs/2305.00434"
11
- # code_link = "https://github.com/ercanburak/EVREAL"
12
- # page_link = "https://ercanburak.github.io/evreal.html"
13
- # instructions_video = "https://www.youtube.com/watch?v="
14
- #
15
- # st.markdown("Paper: " + paper_link, unsafe_allow_html=True)
16
- # st.markdown("Code: " + paper_link, unsafe_allow_html=True)
17
- # st.markdown("Page: " + paper_link, unsafe_allow_html=True)
18
- # st.markdown("Please see this video for instructions on how to use this tool: " + instructions_video, unsafe_allow_html=True)
 
 
 
19
 
20
 
21
  @st.cache_data(show_spinner="Retrieving results...")
@@ -164,7 +167,9 @@ def retrieve_results(selected_dataset, selected_sequence, selected_models, selec
164
  return video_bytes
165
 
166
 
167
- st.title("Result Analysis Tool")
 
 
168
 
169
  base_data_dir = "data"
170
  dataset_cfg_path = os.path.join("cfg", "dataset")
 
5
 
6
  from utils import get_configs, get_display_names, get_path_for_viz, get_text_str, get_meta_path
7
 
8
+ query_params = st.experimental_get_query_params()
9
+
10
+ disable_header = "header" in query_params and query_params["header"][0] == "false"
11
+
12
+ if not disable_header:
13
+ st.header("EVREAL - Event-based Video Reconstruction Evaluation and Analysis Library")
14
+
15
+ paper_link = "https://arxiv.org/abs/2305.00434"
16
+ code_link = "https://github.com/ercanburak/EVREAL"
17
+ page_link = "https://ercanburak.github.io/evreal.html"
18
+
19
+ st.markdown("Paper: " + paper_link, unsafe_allow_html=True)
20
+ st.markdown("Code: " + code_link, unsafe_allow_html=True)
21
+ st.markdown("Page: " + page_link, unsafe_allow_html=True)
22
 
23
 
24
  @st.cache_data(show_spinner="Retrieving results...")
 
167
  return video_bytes
168
 
169
 
170
+ if not disable_header:
171
+ st.divider()
172
+ st.header("Result Analysis Tool")
173
 
174
  base_data_dir = "data"
175
  dataset_cfg_path = os.path.join("cfg", "dataset")