I have created a Python project with Flask and I uploaded it on Heroku
as an app. The goal of this app is to identify the brand from a photo of a potato chips produ
The solution to my problem was (surprisingly) very simple.
I had only to replace
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "/Users/User/PycharmProjects/Project_brand/Credentials.json"
with
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "Credentials.json"
and this works both for my app on Heroku and locally when the Credentials.json
file is within the project/app folder.