I am trying to deploy a fastAPI server for my reactJs frontend, i am doing some predictions on images using cnn models. While deploying, it is giving this error
2024-11-04 17:40:31.317256: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
Nov 4 11:10:31 PMTo enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Nov 4 11:10:44 PM2024-11-04 17:40:44.709068: E external/local_xla/xla/stream_executor/cuda/cuda_driver.cc:152] failed call to cuInit: INTERNAL: CUDA error: Failed call to cuInit: UNKNOWN ERROR (303)
==> Exited with status 1
trying to deploy → https://fastapi-6p8p.onrender.com
I have tried different versions of tensorflow, also tried degrading python version in environment variables to be compatible with tensorflow, also removed all the version specifications but it’s not resolving the issue, i am stuck on this for few hours now, any help would be much appreciated.