Tao Tang

Results 3 comments of Tao Tang

Same error here when I was trying to extract `text` from the response `answer` of the model. (`answer.text`) But the problem can be weridly solved by deleting `.text` and retyping...

my script: ```python vertexai.init(project='****', location='us-central1') gemini_pro_model = GenerativeModel("gemini-pro") answer = gemini_pro_model.generate_content("Now I am going to give you a molecule in SMILES format, as well as its caption (description), I want...

The reason for the termination of the first execution is `HARM_CATEGORY_DANGEROUS_CONTENT`, so that's the reason why we have nothing returned: it got blocked!! Therefore, you can set your safety configuration...