Import fastai breaks json_decode

Hi, hope this is okay in this category, not sure where to go with this query. Very impressed with the Fastai library, btw.

I am trying to get learn.predict to work from a json call. So i send a script a json of data, the script does the predictions and returns a json again. All seems fine except when I include an import of the fastai library in that script the json returns null.

I’ve only started using python so am not sure, but was wondering if there is a stray “print()” or something in the fastai library, as a secondary “print()” in the script also breaks the json and makes it return null.

The initial data comes from and returns to a PHP script. Not sure if that matters.

Thanks in advance,

Mark

This question isn’t relevant to fastai