I tried to run the following
model.train(is_public=True)
and I get this error
UserError: [{‘loc’: [‘body’, ‘upload_base_path’], ‘msg’: ‘field required’, ‘type’: ‘value_error.missing’}]
How to fix it ?
I tried to run the following
model.train(is_public=True)
Can you share the screenshot of the error?
I think you are trying to do this in your local Jupiter environment?
There is an HTTP error as the api accessible only in the course environment which in turn is raising issue related user error.
Regards
DP
Yes I am using my local Jupyter environment …
So, there is no alternative way to access the API in this case ?
Thanks !
There is always a way @Wafa_K, one only needs to keep digging
So next question is did you download all the necessary files you required to do this notebook in your local Jupiter notebook??
You probably do not have the utils file, which could again be the reason for this.
Regards
DP
Yes both the utilities.py and lamini_docs.jsonl are in my local jupyter notebook
Hello @Wafa_K
I don’t think your error is from mode.train(is_public=True)
it is more because your json link is not working for the laminitis model which in turn raise another exception of mode.train(is_public=True)
You probably need to make some changes in the utils file related User. I got a link which gives information about the same, kindly go through this
if this doesn’t help, let me know.
Regards
DP
I fixed the problem by running in the terminal the following :
pip install --user --upgrade --force-reinstall lamini
Hello @Wafa_K
great! thank you. it will help other learners if they come across similar issue.
Keep Learning!!!
Regards
DP