We were working with Python scripts on serverless (Git folder). The following code worked when we were calling on custom modules in sitting in the python scripts (eg. preprocess data from preprocessing.py). We've moved to shared compute but can no longer access these modules. We are still in development.
I would appreciate any insight if anyone has worked with this issue?
import subprocess
import sys
import os
import importlib
print(os.getcwd())
repo_root = "/Workspace/dept_ai/Group23/project832"
sys.path.append("/Workspace/dept_ai/Group23/project832/models/components/")
sys.path.append("/Workspace/dept_ai/Group23/project832/models/base_models/")
from preprocessing import preprocess_data
ModuleNotFoundError: No module named 'preprocessing'