Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,17 +29,10 @@ from langchain.prompts import (
|
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
-
def get_key():
|
| 33 |
-
try:
|
| 34 |
-
google_api_key = st.secrets["GOOGLE_API_KEY"]
|
| 35 |
-
return google_api_key
|
| 36 |
-
except Exception as e:
|
| 37 |
-
google_api_key = os.environ.get("GOOGLE_API_KEY")
|
| 38 |
-
return google_api_key
|
| 39 |
-
|
| 40 |
-
google_api_key = get_key()
|
| 41 |
|
| 42 |
-
google_api_key =
|
|
|
|
|
|
|
| 43 |
#api_key2 = st.secrets["OPENAI_API_KEY"]
|
| 44 |
os.environ["GOOGLE_API_KEY"] = google_api_key
|
| 45 |
|
|
|
|
| 29 |
|
| 30 |
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
google_api_key = "AIzaSyD29fEos3V6S2L-AGSQgNu03GqZEIgJads "
|
| 34 |
+
|
| 35 |
+
|
| 36 |
#api_key2 = st.secrets["OPENAI_API_KEY"]
|
| 37 |
os.environ["GOOGLE_API_KEY"] = google_api_key
|
| 38 |
|