NeeravS commited on
Commit
7c400e9
·
verified ·
1 Parent(s): 7884a81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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'])