csensemakers / desci-sense

2 stars 2 forks source link

Setup python parser API endpoint for firebase app #103

Closed ronentk closed 7 months ago

ronentk commented 7 months ago

@pepoospina I'm not sure this is the right way to do the import. https://github.com/csensemakers/desci-sense/blob/034405c89e5338f46b0e79e0494097c26424399c/nlp/desci_sense/shared_functions/tagger.py#L7

It does work for me locally, does it also work on the cloud deployed version?

ronentk commented 7 months ago

Also, I got an error on the python server when calling the parser model

firebase objc[11872]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead.

To resolve it I needed to run

export NO_PROXY=*

Which I discovered from reading this - https://hynek.me/til/rq-macos/

Not sure if this is a local problem with my Mac or something we'll need to handle more generally