fix
Browse filesFiles changed (2)
- app.py+5-5
- requirements.txt+1-1
141 unmodified lines14214314414514514614714821 unmodified lines17017117217317417317417517617712 unmodified lines190191192193194193194195196197141 unmodified lines gr.Markdown(""" # 🎬 FrameVis - Video Frame Visualizer Upload a video to create a beautiful visualization of its frames. The tool will extract frames at regular intervals and combine them into a single image. **Move your mouse over the visualization to see the original frames!** and combine them into a single image. **Click anywhere on the visualization to see the original frames!** """) with gr.Row():21 unmodified lines with gr.Column(scale=2): # Output components frame_data = gr.State() # Hidden component to store frame data output_image = gr.Image(label="Visualization Result", interactive=True, height=300) frame_info = gr.Markdown("Hover over the visualization to see frame details") output_image = gr.Image(label="Visualization Result", tool="select", height=300) frame_info = gr.Markdown("Click on the visualization to see frame details") preview_frame = gr.Image(label="Frame Preview", interactive=False, height=300) # Handle processing12 unmodified lines outputs=[output_image, frame_data] ) # Handle mouseover events output_image.mouseover( # Handle selection events output_image.select( fn=on_mouse_move, inputs=[frame_data], outputs=[preview_frame, frame_info]11234gradio>=4.19.2gradio>=4.44.1opencv-python-headless>=4.8.0numpy>=1.24.0fastapi>=0.115.0app.py+5-5
requirements.txt+1-1