MLDeveloper commited on
Commit
8c16c2f
·
verified ·
1 Parent(s): a9eae99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -15,7 +15,10 @@ st.set_page_config(
15
 
16
  # Retrieve the Google API key from the environment
17
  GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
18
- GOOGLE_API_KEY= AIzaSyDUHBTYHUVwYSykH5T5QYNifwWyadNv8d0
 
 
 
19
 
20
  # Check if the API key is loaded
21
  if not GOOGLE_API_KEY:
 
15
 
16
  # Retrieve the Google API key from the environment
17
  GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
18
+
19
+ # If API key is not in the environment variable, hard-code it (though not recommended for production)
20
+ if not GOOGLE_API_KEY:
21
+ GOOGLE_API_KEY = 'AIzaSyDUHBTYHUVwYSykH5T5QYNifwWyadNv8d0'
22
 
23
  # Check if the API key is loaded
24
  if not GOOGLE_API_KEY: