Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,6 +94,9 @@ def predict_video(video_path):
|
|
| 94 |
"total_frames": total_frames
|
| 95 |
}
|
| 96 |
|
|
|
|
|
|
|
|
|
|
| 97 |
return final_result
|
| 98 |
|
| 99 |
# UI
|
|
|
|
| 94 |
"total_frames": total_frames
|
| 95 |
}
|
| 96 |
|
| 97 |
+
if os.path.exists("frames"):
|
| 98 |
+
shutil.rmtree("frames")
|
| 99 |
+
|
| 100 |
return final_result
|
| 101 |
|
| 102 |
# UI
|