HaywhyCoder commited on
Commit
a08d9ed
·
verified ·
1 Parent(s): 6d8e0b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ For more information on `huggingface_hub` Inference API support, please check th
12
  if "GOOGLE_API_KEY" not in os.environ:
13
  os.environ["GOOGLE_API_KEY"] = os.getenv("GOOGLE_API_KEY")
14
 
15
- vis_llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash-preview-image-generation")
16
 
17
  # Image to Base64 Converter
18
  def image_to_base64(image_path):
 
12
  if "GOOGLE_API_KEY" not in os.environ:
13
  os.environ["GOOGLE_API_KEY"] = os.getenv("GOOGLE_API_KEY")
14
 
15
+ vis_llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash-preview-image-generation", google_api_key=GOOGLE_API_KEY)
16
 
17
  # Image to Base64 Converter
18
  def image_to_base64(image_path):