Hi,
I am getting very weird behaviour in spaces.
The same code is working in colab but not in spaces due to numpy version mismatch.
Error:

Screenshot 2022-01-04 at 11.14.48 PM2284×866 127 KB

Colab Link where code is working: Google Colab
Spaces Link