Can not allocate memory when running prediction

Hi , I am using flask based server to process frames from my camera.
I am processing 1 frame per 30 frames sent, at 30fps and I get the following message

RuntimeError: [enforce fail at CPUAllocator.cpp:64] . DefaultCPUAllocator: can’t allocate memory: you tried to allocate 34080768 bytes. Error code 12 (Cannot allocate memory)

What am I doing wrong ?