hb-setosys commited on
Commit
ccf7f49
·
verified ·
1 Parent(s): 53d6d52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,8 +45,8 @@ def count_trucks(video_path):
45
  cap.release()
46
 
47
  return {
48
- "Total Trucks in Video": int(np.max(truck_count_per_frame)) if truck_count_per_frame else 0,
49
- "Avg Trucks Per Frame": round(np.mean(truck_count_per_frame), 2) if truck_count_per_frame else 0
50
  }
51
 
52
  # Gradio UI function
 
45
  cap.release()
46
 
47
  return {
48
+ "Total Trucks in Video": int(np.max(truck_count_per_frame)) if truck_count_per_frame else 0 #,
49
+ #"Avg Trucks Per Frame": round(np.mean(truck_count_per_frame), 2) if truck_count_per_frame else 0
50
  }
51
 
52
  # Gradio UI function