Server error when loading Spacy lib

Hi,

I’m trying to load Spacy “en_core_web_lg” but I get the error below after a few seconds

ExecutionTerminatedError: Server code execution process was killed. It may have run out of memory: 54a7c30e0cat [Form1, line 54](javascript:void(0))

The code is:
image

Thanks

Soadad

Hi @soadadfarhan,

Could you let me know where your server code is executing? Are you using the Uplink?

Hi Bridget,

It’s executing on the server and I’m not using uplink.

Regards

Soadad

Hi @soadadfarhan,

The Spacy library is very large and it looks like the memory limit on your current plan isn’t sufficient. I’d suggest looking into Dedicated Hosting where you can choose an AWS instance with enough memory to run your code.

https://anvil.works/pricing

Thanks Bridget for looking into this

I am looking to upgrade to the Individual plan and was hoping to port my NLP code into Anvil. I use SpaCy too, so will we experience this issue as well? Right now I use uplink to call SpaCy related functions. It’s not bad in terms of speed. Will I be better off using Uplink?