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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ import os
9
  """
10
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
11
  """
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
 
 
9
  """
10
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
11
  """
12
+
13
+ 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