Numpy version mismatch in spaces
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 KBColab Link where code is working:Google ColabSpacesLink
2022-01-04T18:19:24Z
Hello,Can you give me the link to your Space so I can take a look?
2022-01-04T18:31:56Z
Hey Merve,Updated the same in original post.SpacesLink
2022-01-05T10:13:09Z
I have managed to debug this issue and to my surprise this has something to do with gradio and not the original code.
2022-01-05T10:37:11Z
os.system('pip uninstall -y numpy')
os.system('pip install numpy')
import gradio as grdUsing the above code in the exact order solved my problem.
2022-01-06T15:03:22Z
Hi@Harveenchadha– what was the issue related to Gradio? Happy to take a look and issue a fix.