Yaswanth56 commited on
Commit
45e669a
·
verified ·
1 Parent(s): 5ff1067

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -203,6 +203,10 @@ def generate_line_chart(detections: List[Dict[str, Any]]) -> Optional[str]:
203
  plt.close()
204
  return chart_path
205
 
 
 
 
 
206
  def process_video(video, resize_width=4000, resize_height=3000, frame_skip=5):
207
  global frame_count, last_metrics, detected_counts, detected_issues, gps_coordinates, log_entries
208
  frame_count = 0
@@ -403,4 +407,4 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="orange")) as iface:
403
  )
404
 
405
  if __name__ == "__main__":
406
- iface.launch()
 
203
  plt.close()
204
  return chart_path
205
 
206
+ # The rest of the process_video function remains the same as before
207
+
208
+
209
+
210
  def process_video(video, resize_width=4000, resize_height=3000, frame_skip=5):
211
  global frame_count, last_metrics, detected_counts, detected_issues, gps_coordinates, log_entries
212
  frame_count = 0
 
407
  )
408
 
409
  if __name__ == "__main__":
410
+ iface.launch()