add key from file

This commit is contained in:
Daniel Cronin 2024-10-22 03:23:12 -05:00
parent 57d418a4d6
commit 083f67763b

View File

@ -1,7 +1,7 @@
import os
import google.generativeai as genai
genai.configure(api_key="AIzaSyAYt9n5dF2ZwOVYTbPV4_T5S0La2u5i1LU")
genai.configure(api_key=os.environ["GEMINI_API_KEY"])
# Create the model
generation_config = {