sradc commited on
Commit
fe577c4
1 Parent(s): 7969559

update app.py GUI (order of operations & info/text)

Browse files
Files changed (1) hide show
  1. video_semantic_search/app.py +3 -3
video_semantic_search/app.py CHANGED
@@ -108,11 +108,11 @@ def display_search_results(results: list[SearchResult]) -> None:
108
 
109
  def main():
110
  st.set_page_config(page_title="video-semantic-search", layout="wide")
111
- st.header("Visual content search over videos")
112
  st.markdown("_App by Ben Tenmann and Sidney Radcliffe_")
113
- st.text_input("What are you looking for?", key="query")
114
- query = st.session_state["query"]
115
  searcher = get_semantic_searcher()
 
 
116
  if query:
117
  st.text("Click image to open video")
118
  display_search_results(searcher.search(query))
 
108
 
109
  def main():
110
  st.set_page_config(page_title="video-semantic-search", layout="wide")
111
+ st.header("Visual content search over music videos")
112
  st.markdown("_App by Ben Tenmann and Sidney Radcliffe_")
 
 
113
  searcher = get_semantic_searcher()
114
+ st.text_input(f"What are you looking for? Search over {len(searcher.metadata)} music videos.", key="query")
115
+ query = st.session_state["query"]
116
  if query:
117
  st.text("Click image to open video")
118
  display_search_results(searcher.search(query))