Spaces:
Running
Running
Update app.py
Browse files
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 |
|