sdafd commited on
Commit
d6a2d2e
·
verified ·
1 Parent(s): d14316c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -201,7 +201,7 @@ def process_video(video, num_frames):
201
 
202
  for frame_path in frames:
203
  if os.path.exists(frame_path):
204
- os.remove(frame_path)
205
 
206
  return f"{nsfw_count} out of {total_frames} frames were NSFW."
207
 
 
201
 
202
  for frame_path in frames:
203
  if os.path.exists(frame_path):
204
+ os.remove('/tmp/gradio/' + frame_path)
205
 
206
  return f"{nsfw_count} out of {total_frames} frames were NSFW."
207