Jabrave commited on
Commit
4fe2744
·
verified ·
1 Parent(s): a936794

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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