GJ007 commited on
Commit
f8e9243
·
verified ·
1 Parent(s): f85844e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -6,18 +6,14 @@ from os import listdir
6
  from os.path import isfile, join
7
  import requests
8
  import PyPDF2
9
- import pandas as pd
10
 
11
- from dotenv import load_dotenv
12
  from langchain.text_splitter import RecursiveCharacterTextSplitter
13
  from pinecone import Pinecone, ServerlessSpec
14
  from groq import Groq
15
  from sentence_transformers import SentenceTransformer
16
 
17
- # Load the environment variables from the .env file
18
- load_dotenv()
19
 
20
- # Access the variables using os.getenv
21
  GROQ_API_KEY = st.secrets["GROQ_API_KEY"]
22
  PINECONE_API_KEY = st.secrets["PINECONE_API_KEY"]
23
  COHERE_API_KEY = st.secrets["COHERE_API_KEY"]
 
6
  from os.path import isfile, join
7
  import requests
8
  import PyPDF2
 
9
 
 
10
  from langchain.text_splitter import RecursiveCharacterTextSplitter
11
  from pinecone import Pinecone, ServerlessSpec
12
  from groq import Groq
13
  from sentence_transformers import SentenceTransformer
14
 
 
 
15
 
16
+ # Access the variables
17
  GROQ_API_KEY = st.secrets["GROQ_API_KEY"]
18
  PINECONE_API_KEY = st.secrets["PINECONE_API_KEY"]
19
  COHERE_API_KEY = st.secrets["COHERE_API_KEY"]