Hammad112 commited on
Commit
9170915
1 Parent(s): 651161c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -12,11 +12,10 @@ import traceback
12
  from langchain.embeddings import HuggingFaceEmbeddings
13
  import tensorflow as tf # Ensure TensorFlow is imported
14
 
15
- # Load environment variables
16
- load_dotenv()
17
 
18
- # Ensure the Google API key is loaded
19
- google_api_key = os.getenv('GOOGLE_API_KEY') # Fetch from .env
 
20
  if not google_api_key:
21
  raise ValueError("Google API key not found. Please check your .env file.")
22
 
 
12
  from langchain.embeddings import HuggingFaceEmbeddings
13
  import tensorflow as tf # Ensure TensorFlow is imported
14
 
 
 
15
 
16
+
17
+
18
+ google_api_key = 'AIzaSyBPC1o6NSGFT2LumpdompngjOOzzUNwGqk' # Fetch from .env
19
  if not google_api_key:
20
  raise ValueError("Google API key not found. Please check your .env file.")
21