Hello @sevin91580
Actually, the thing is, I know the exact issue, I have been trying for the past 3 days, but unable to solve it.
I’m following one of the popular course on YouTube, “MLOps with Databricks” (https://www.youtube.com/watch?v=Rt8qtjskuSs&t=754s
).
Currently, I’m on Lecture 6. I haven’t modified any part of the code that the instructors uploaded to their GitHub. In the tutorial, they were able to successfully serve the endpoint, but with the exact same code, I’m encountering a directory issue, which is quite strange.
To give you a quick recap, I’ve consolidated the code into a single file for clarity. Using the Iris dataset as an example, I first create a basic model with the scikit-learn flavor. Then, I create a PyFunc wrapper from the registered model and, finally, attempt to serve the wrapper model as an endpoint.
https://github.com/musabanees/marvel-characters_mlops/blob/main/notebooks/demo_project.py
I would appreciate it if you look at this.