shivam11 commited on
Commit
61c8cc7
·
verified ·
1 Parent(s): 27e68cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -12,7 +12,9 @@ import time
12
 
13
  import google.generativeai as genai
14
 
15
- genai.configure(api_key=os.environ["GEMINI_API_KEY"])
 
 
16
 
17
  def upload_to_gemini(path, mime_type=None):
18
  """Uploads the given file to Gemini.
 
12
 
13
  import google.generativeai as genai
14
 
15
+ load_dotenv()
16
+ os.getenv("GOOGLE_API_KEY")
17
+ genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
18
 
19
  def upload_to_gemini(path, mime_type=None):
20
  """Uploads the given file to Gemini.