rishiraj commited on
Commit
3566a6b
1 Parent(s): ff0dcd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,12 +1,13 @@
1
  from huggingface_hub import InferenceClient
2
  import gradio as gr
 
3
  import http.client
4
  import typing
5
  import urllib.request
6
  import vertexai
7
  from vertexai.generative_models import GenerativeModel, Image
8
 
9
- # vertexai.init(project=project_id)
10
  model = GenerativeModel("gemini-1.0-pro-vision")
11
  client = InferenceClient("google/gemma-7b-it")
12
 
 
1
  from huggingface_hub import InferenceClient
2
  import gradio as gr
3
+ import os
4
  import http.client
5
  import typing
6
  import urllib.request
7
  import vertexai
8
  from vertexai.generative_models import GenerativeModel, Image
9
 
10
+ vertexai.init(project=os.getenv('project_id'))
11
  model = GenerativeModel("gemini-1.0-pro-vision")
12
  client = InferenceClient("google/gemma-7b-it")
13