Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ def unified_prediction_function(frame):
|
|
| 92 |
# The predictor class handles all the complex ML logic
|
| 93 |
annotated_frame, probabilities = predictor.process_frame(frame)
|
| 94 |
|
| 95 |
-
|
| 96 |
|
| 97 |
def process_video(video_path, progress=gr.Progress(track_tqdm=True)):
|
| 98 |
"""Processes an uploaded video file frame-by-frame."""
|
|
|
|
| 92 |
# The predictor class handles all the complex ML logic
|
| 93 |
annotated_frame, probabilities = predictor.process_frame(frame)
|
| 94 |
|
| 95 |
+
annotated_frame, probabilities = predictor.process_frame_for_upload(frame)
|
| 96 |
|
| 97 |
def process_video(video_path, progress=gr.Progress(track_tqdm=True)):
|
| 98 |
"""Processes an uploaded video file frame-by-frame."""
|