CosmickVisions commited on
Commit
7fe0f8a
·
verified ·
1 Parent(s): 006d136

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -19
app.py CHANGED
@@ -1689,25 +1689,6 @@ def main():
1689
  mime="video/mp4"
1690
  )
1691
 
1692
- # Extract and display thumbnail frames instead of video playback
1693
- st.markdown("### Video Preview")
1694
- st.info("To view the full video with analysis results, please download using the button above and play it locally.")
1695
-
1696
- # Show preview frames
1697
- try:
1698
- st.markdown("#### Preview Frames")
1699
- frames = extract_video_frames(processed_video, num_frames=4)
1700
-
1701
- if frames:
1702
- cols = st.columns(len(frames))
1703
- for i, frame in enumerate(frames):
1704
- with cols[i]:
1705
- st.image(frame, caption=f"Frame {i+1}", use_container_width=True)
1706
- else:
1707
- st.warning("Could not extract preview frames from the video.")
1708
- except Exception as e:
1709
- st.error(f"Error extracting preview frames: {str(e)}")
1710
-
1711
  # Show detailed analysis results
1712
  st.markdown("### Detailed Analysis Results")
1713
 
 
1689
  mime="video/mp4"
1690
  )
1691
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1692
  # Show detailed analysis results
1693
  st.markdown("### Detailed Analysis Results")
1694