rishiraj commited on
Commit
69601bd
1 Parent(s): 983678f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -9,6 +9,9 @@ import urllib.request
9
  import vertexai
10
  from vertexai.generative_models import GenerativeModel, Image
11
 
 
 
 
12
  vertexai.init(project=os.getenv('project_id'))
13
  model = GenerativeModel("gemini-1.0-pro-vision")
14
  client = InferenceClient("google/gemma-7b-it")
 
9
  import vertexai
10
  from vertexai.generative_models import GenerativeModel, Image
11
 
12
+ with open(".config/application_default_credentials.json", 'w') as file:
13
+ file.write(str(os.getenv('credentials')))
14
+
15
  vertexai.init(project=os.getenv('project_id'))
16
  model = GenerativeModel("gemini-1.0-pro-vision")
17
  client = InferenceClient("google/gemma-7b-it")