Spaces:
Build error
Build error
Commit ·
e2de6b4
1
Parent(s): 2bafa70
update the max memory usage to 70%
Browse files91 unmodified lines929394959697989991 unmodified linesif ret == True:current_memory_usage = psutil.virtual_memory().percentframes.append(cv2.cvtColor(frame, cv2.COLOR_BGR2RGB))if current_memory_usage > 90:operation_log = [("Memory usage is too high (>90%). Stop the video extraction. Please reduce the video resolution or frame rate.", "Error")]print("Memory usage is too high (>90%). Please reduce the video resolution or frame rate.")breakelse:91 unmodified lines929394959697989991 unmodified linesif ret == True:current_memory_usage = psutil.virtual_memory().percentframes.append(cv2.cvtColor(frame, cv2.COLOR_BGR2RGB))if current_memory_usage > 70:operation_log = [("Memory usage is too high (>70%). Stop the video extraction. Please reduce the video resolution or frame rate.", "Error")]print("Memory usage is too high (>90%). Please reduce the video resolution or frame rate.")breakelse:
app.py+2-2