I have a Vertex AI pipeline that uses a Python component.
@component(
base_image="python:3.9",
packages_to_install=[lots!],
)
def my_comp(
parms
) -> str:
from google.cloud import aiplatform
aiplatform.init(project=project, location=location)
bill=x.y()
and in x.py:
class y:
How do I use x.y in the component? I have tried importing into the component and the jupyter notebook that creates the whole pipeline but the component doesn't see it.
I have tried from x import y
and also import x
. x.py is in the same folder as the jupyter notebook.