dschandra commited on
Commit
b75a3be
·
verified ·
1 Parent(s): 04d87fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -4,10 +4,7 @@ import os
4
 
5
  def analyze_lbw(video):
6
  """Analyze a video for LBW detection, return processed video path and decision."""
7
- output_path = process_video(video)
8
- # Extract decision from the last processed frame (assuming it's the final decision)
9
- # This requires the video_processor to return or modify to track the decision
10
- decision = "Pending" # Placeholder; will be updated in video_processor
11
  return output_path, decision
12
 
13
  app = gr.Interface(
 
4
 
5
  def analyze_lbw(video):
6
  """Analyze a video for LBW detection, return processed video path and decision."""
7
+ output_path, decision = process_video(video) # Updated to handle multiple returns
 
 
 
8
  return output_path, decision
9
 
10
  app = gr.Interface(