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:

Colab Link where code is working: Google Colab

Spaces Link

Hello,

Can you give me the link to your Space so I can take a look :eyes: ?

Hey Merve,

Updated the same in original post.

Spaces Link

I have managed to debug this issue and to my surprise this has something to do with gradio and not the original code.

os.system('pip uninstall -y numpy')
os.system('pip install numpy')
import gradio as grd

Using the above code in the exact order solved my problem.

Hi @Harveenchadha – what was the issue related to Gradio? Happy to take a look and issue a fix.