I made an application using Gemini pro Vision on python. using streamlit the local host is working fine. However after I deplyed my app to streamlit cloud the following error is showing:
PermissionDenied: 403 Request had insufficient authentication scopes.
google.api_core.exceptions.PermissionDenied:
[reason:
“ACCESS_TOKEN_SCOPE_INSUFFICIENT”
domain: “googleapis.com”
metadata {
key: “service”
value: “generativelanguage.googleapis.com”
}
metadata {
key: “method”
value: “google.ai.generativelanguage.v1beta.GenerativeService.GenerateContent”
}
]
I enabled the API with google cloud console but no changes.
its an app that takes photo and classify it with gemini
jabal ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.