srinidhidevaraj commited on
Commit
13c2b77
1 Parent(s): 622ac8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -27,18 +27,18 @@ import time
27
  load_dotenv()
28
 
29
  ASTRA_DB_SECURE_BUNDLE_PATH ='secure-connect-pdf-query-db.zip'
30
- groq_api_key=os.getenv['GROQ_API_KEY']
31
  os.environ["LANGCHAIN_TRACING_V2"]="true"
32
- LANGCHAIN_API_KEY=os.getenv["LANGCHAIN_API_KEY"]
33
- LANGCHAIN_PROJECT=os.getenv["LANGCHAIN_PROJECT"]
34
- LANGCHAIN_ENDPOINT=os.getenv["LANGCHAIN_ENDPOINT"]
35
- ASTRA_DB_APPLICATION_TOKEN=os.getenv["ASTRA_DB_APPLICATION_TOKEN"]
36
  ASTRA_DB_ID=os.getenv("ASTRA_DB_ID")
37
- ASTRA_DB_KEYSPACE=os.getenv["ASTRA_DB_KEYSPACE"]
38
- ASTRA_DB_API_ENDPOINT=os.getenv["ASTRA_DB_API_ENDPOINT"]
39
- ASTRA_DB_CLIENT_ID=os.getenv[ASTRA_DB_CLIENT_ID"]
40
- ASTRA_DB_CLIENT_SECRET=os.getenv["ASTRA_DB_CLIENT_SECRET"]
41
- ASTRA_DB_TABLE=os.getenv["ASTRA_DB_TABLE"]
42
 
43
  cassio.init(token=ASTRA_DB_APPLICATION_TOKEN,database_id=ASTRA_DB_ID,secure_connect_bundle=ASTRA_DB_SECURE_BUNDLE_PATH)
44
 
 
27
  load_dotenv()
28
 
29
  ASTRA_DB_SECURE_BUNDLE_PATH ='secure-connect-pdf-query-db.zip'
30
+ groq_api_key=os.getenv('GROQ_API_KEY')
31
  os.environ["LANGCHAIN_TRACING_V2"]="true"
32
+ LANGCHAIN_API_KEY=os.getenv("LANGCHAIN_API_KEY")
33
+ LANGCHAIN_PROJECT=os.getenv("LANGCHAIN_PROJECT")
34
+ LANGCHAIN_ENDPOINT=os.getenv("LANGCHAIN_ENDPOINT")
35
+ ASTRA_DB_APPLICATION_TOKEN=os.getenv("ASTRA_DB_APPLICATION_TOKEN")
36
  ASTRA_DB_ID=os.getenv("ASTRA_DB_ID")
37
+ ASTRA_DB_KEYSPACE=os.getenv("ASTRA_DB_KEYSPACE")
38
+ ASTRA_DB_API_ENDPOINT=os.getenv("ASTRA_DB_API_ENDPOINT")
39
+ ASTRA_DB_CLIENT_ID=os.getenv("ASTRA_DB_CLIENT_ID")
40
+ ASTRA_DB_CLIENT_SECRET=os.getenv("ASTRA_DB_CLIENT_SECRET")
41
+ ASTRA_DB_TABLE=os.getenv("ASTRA_DB_TABLE")
42
 
43
  cassio.init(token=ASTRA_DB_APPLICATION_TOKEN,database_id=ASTRA_DB_ID,secure_connect_bundle=ASTRA_DB_SECURE_BUNDLE_PATH)
44