Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -75,8 +75,10 @@ def analyze_video(video_file):
|
|
75 |
return {"error": "Server misconfiguration. Access key not set."}
|
76 |
|
77 |
try:
|
78 |
-
truncated_video = truncate_video(video_file) # Truncate the video for faster analysis
|
79 |
-
results = analyzer.analyze_media(truncated_video)
|
|
|
|
|
80 |
|
81 |
# Extract frame count and video probability
|
82 |
frame_count = len(results['video_analysis']['frame_results'])
|
|
|
75 |
return {"error": "Server misconfiguration. Access key not set."}
|
76 |
|
77 |
try:
|
78 |
+
#truncated_video = truncate_video(video_file) # Truncate the video for faster analysis
|
79 |
+
#results = analyzer.analyze_media(truncated_video)
|
80 |
+
results = analyzer.analyze_media(video_file)
|
81 |
+
|
82 |
|
83 |
# Extract frame count and video probability
|
84 |
frame_count = len(results['video_analysis']['frame_results'])
|