Numpy version mismatch in spaces

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.