hb-setosys commited on
Commit
fe49260
·
verified ·
1 Parent(s): c3cdf4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,8 +51,8 @@ def count_objects(video_path):
51
  cap.release()
52
 
53
  return {
54
- "Max People in a Frame": int(np.max(object_counts["people"])) if object_counts["people"] else 0,
55
- "Max Trucks in a Frame": int(np.max(object_counts["trucks"])) if object_counts["trucks"] else 0
56
  }
57
 
58
  # Gradio UI function
 
51
  cap.release()
52
 
53
  return {
54
+ #"Max People in a Frame": int(np.max(object_counts["people"])) if object_counts["people"] else 0,
55
+ "Truck Count": int(np.max(object_counts["trucks"])) if object_counts["trucks"] else 0
56
  }
57
 
58
  # Gradio UI function