codelion commited on
Commit
3f2c22a
·
verified ·
1 Parent(s): 7c2c622

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -2,8 +2,6 @@ import os
2
  import json
3
  import gradio as gr
4
  import cv2
5
- import matplotlib.pyplot as plt # imported for compatibility if needed later
6
- from collections import Counter
7
  from google import genai
8
  from google.genai import types
9
  from google.genai.types import Part
@@ -168,7 +166,7 @@ iface = gr.Interface(
168
  ],
169
  outputs=[
170
  gr.Markdown(label="Security & Surveillance Analysis Report"),
171
- gr.Gallery(label="Extracted Key Frames").style(grid=[2], height="auto")
172
  ],
173
  title="AI Video Analysis and Summariser Agent",
174
  description=(
 
2
  import json
3
  import gradio as gr
4
  import cv2
 
 
5
  from google import genai
6
  from google.genai import types
7
  from google.genai.types import Part
 
166
  ],
167
  outputs=[
168
  gr.Markdown(label="Security & Surveillance Analysis Report"),
169
+ gr.Gallery(label="Extracted Key Frames", columns=2)
170
  ],
171
  title="AI Video Analysis and Summariser Agent",
172
  description=(