Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -201,8 +201,8 @@ def process_video(video_path, num_frames):
|
|
201 |
frame_results = []
|
202 |
|
203 |
for frame_path in frames:
|
204 |
-
|
205 |
-
nsfw_detected = check_nsfw_final(
|
206 |
frame_results.append({
|
207 |
"frame_path": frame_path,
|
208 |
"nsfw_detected": nsfw_detected
|
|
|
201 |
frame_results = []
|
202 |
|
203 |
for frame_path in frames:
|
204 |
+
print(f"https://sdafd-video-nsfw-detect-api.hf.space/file=/tmp/gradio/{frame_path}")
|
205 |
+
nsfw_detected = check_nsfw_final(f"https://sdafd-video-nsfw-detect-api.hf.space/file=/tmp/gradio/{frame_path}")
|
206 |
frame_results.append({
|
207 |
"frame_path": frame_path,
|
208 |
"nsfw_detected": nsfw_detected
|