Update app.py
Browse files
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")
|