yashvii commited on
Commit
22ce743
·
verified ·
1 Parent(s): eb21fd2

Update gradio_demo/app.py

Browse files
Files changed (1) hide show
  1. gradio_demo/app.py +2 -1
gradio_demo/app.py CHANGED
@@ -43,7 +43,8 @@ import os
43
  # file.write(response.content)
44
 
45
  # print(f"Service account JSON file successfully downloaded")
46
- os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "serviceaccount.json"
 
47
 
48
  # except requests.exceptions.RequestException as e:
49
  # print(f"Failed to download the service account JSON file: {e}")
 
43
  # file.write(response.content)
44
 
45
  # print(f"Service account JSON file successfully downloaded")
46
+ os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = os.getenv('GOOGLE_APPLICATION_CREDENTIALS')
47
+ # os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "serviceaccount.json"
48
 
49
  # except requests.exceptions.RequestException as e:
50
  # print(f"Failed to download the service account JSON file: {e}")