Spaces:
Build error
Build error
Commit ·
98d86dc
1
Parent(s): 8aa7107
Update app.py
Browse files91 unmodified lines9293949596979891 unmodified linesif ret == True:current_memory_usage = psutil.virtual_memory().percentframes.append(cv2.cvtColor(frame, cv2.COLOR_BGR2RGB))if current_memory_usage > 50:operation_log = [("Memory usage is too high (>70%). Stop the video extraction. Please reduce the video resolution or frame rate or wait for other users to complete the operation.", "Error")]print("Memory usage is too high (>50%). Please reduce the video resolution or frame rate.")break91 unmodified lines9293949596979891 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 or wait for other users to complete the operation.", "Error")]print("Memory usage is too high (>50%). Please reduce the video resolution or frame rate.")break
app.py+1-1