move key to .env
This commit is contained in:
parent
083f67763b
commit
45071812c3
1
epb_site/epb_site/.env
Normal file
1
epb_site/epb_site/.env
Normal file
@ -0,0 +1 @@
|
|||||||
|
GEMINI_API_KEY=AIzaSyAYt9n5dF2ZwOVYTbPV4_T5S0La2u5i1LU
|
@ -1,7 +1,10 @@
|
|||||||
import os
|
import os
|
||||||
import google.generativeai as genai
|
import google.generativeai as genai
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
genai.configure(api_key=os.environ["GEMINI_API_KEY"])
|
load_dotenv()
|
||||||
|
|
||||||
|
genai.configure(api_key=os.getenv("GEMINI_API_KEY"))
|
||||||
|
|
||||||
# Create the model
|
# Create the model
|
||||||
generation_config = {
|
generation_config = {
|
||||||
|
Loading…
Reference in New Issue
Block a user