Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,9 +28,15 @@ from langchain.prompts import (
|
|
28 |
)
|
29 |
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
|
33 |
-
google_api_key = "AIzaSyD29fEos3V6S2L-AGSQgNu03GqZEIgJads "
|
34 |
|
35 |
|
36 |
#api_key2 = st.secrets["OPENAI_API_KEY"]
|
|
|
28 |
)
|
29 |
|
30 |
|
31 |
+
from dotenv import load_dotenv
|
32 |
+
|
33 |
+
# Load environment variables from .env file
|
34 |
+
load_dotenv()
|
35 |
+
|
36 |
+
# Access the API key
|
37 |
+
google_api_key = os.getenv("GOOGLE_API_KEY")
|
38 |
|
39 |
|
|
|
40 |
|
41 |
|
42 |
#api_key2 = st.secrets["OPENAI_API_KEY"]
|