brunnurs / valuenet

ValueNet: A Neural Text-to-SQL Architecture Incorporating Values
Apache License 2.0
66 stars 23 forks source link

"message": "API key not valid. Please pass a valid API key.", #12

Open papsipublic opened 3 years ago

papsipublic commented 3 years ago

hI,

i am trying to run the code in its basic "play around" mode:

python src/manual_inference/manual_inference.py --model_to_load=pretrained_models/trained_model.pt --database=cre_Theme_park

and I am getting the following error

ERROR!!! HTTP: 400. for request 'how many parks are there' { "error": { "code": 400, "message": "API key not valid. Please pass a valid API key.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "API_KEY_INVALID", "domain": "googleapis.com", "metadata": { "service": "language.googleapis.com" } } ] } }

Could you kindly advice on what's need to be done?

Thank you

papsipublic commented 3 years ago

there is also an error line after this message:

Exception: 'NoneType' object is not subscriptable

which I assume it will wash away if the API service would be available. However, if this may not be the case, please instruct.

Thanks

jotisuv commented 5 months ago

do I need to create API_KEY and NER_API_SECRET if I want to run this base model in my system?