NEXAS commited on
Commit
51dd05c
·
verified ·
1 Parent(s): 5b072a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -214,6 +214,8 @@ def page_1():
214
  st.session_state.image_collection = image_collection
215
  st.session_state.text_collection = text_collection
216
  st.session_state.video_collection = video_collection
 
 
217
 
218
  progress_bar.progress(100)
219
  status_text.text("Processing completed successfully!")
@@ -249,7 +251,9 @@ def page_2():
249
  display_images(image_collection, query, max_distance=1.55, debug=True)
250
 
251
  st.markdown("### Videos")
 
252
  frame = inputs["frame"]
 
253
  if frame:
254
  video_path = f"video/StockVideos-CC0/{os.path.basename(frame).split('/')[0]}.mp4"
255
  if os.path.exists(video_path):
 
214
  st.session_state.image_collection = image_collection
215
  st.session_state.text_collection = text_collection
216
  st.session_state.video_collection = video_collection
217
+
218
+ st.video()
219
 
220
  progress_bar.progress(100)
221
  status_text.text("Processing completed successfully!")
 
251
  display_images(image_collection, query, max_distance=1.55, debug=True)
252
 
253
  st.markdown("### Videos")
254
+ display_videos_streamlit(video_collection, query_text=query, max_distance=None, max_results=5, debug=False)
255
  frame = inputs["frame"]
256
+
257
  if frame:
258
  video_path = f"video/StockVideos-CC0/{os.path.basename(frame).split('/')[0]}.mp4"
259
  if os.path.exists(video_path):