isayahc commited on
Commit
6ca9efb
Β·
1 Parent(s): 006510e

fixed env var issue

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -20,6 +20,16 @@ from langchain.prompts import ChatPromptTemplate
20
 
21
  from utils import download_from_google_drive
22
 
 
 
 
 
 
 
 
 
 
 
23
  #web_links = ["https://www.databricks.com/","https://help.databricks.com","https://docs.databricks.com","https://kb.databricks.com/","http://docs.databricks.com/getting-started/index.html","http://docs.databricks.com/introduction/index.html","http://docs.databricks.com/getting-started/tutorials/index.html","http://docs.databricks.com/machine-learning/index.html","http://docs.databricks.com/sql/index.html"]
24
  #loader = WebBaseLoader(web_links)
25
  #documents = loader.load()
@@ -28,7 +38,7 @@ from utils import download_from_google_drive
28
 
29
  # download_from_google_drive(gdown_file_id)
30
 
31
- file_id = os.getenv(gdown_file_id) # Replace with your file ID
32
  download_from_google_drive(file_id)
33
  zip_file_path = "/content/chroma_db-complete.zip" # Replace with your zip file path
34
  extract_path = "/chroma_db"
 
20
 
21
  from utils import download_from_google_drive
22
 
23
+ from dotenv import load_dotenv
24
+
25
+
26
+
27
+ load_dotenv()
28
+
29
+ file_id = os.getenv("gdown_file_id", "")
30
+
31
+ print(file_id)
32
+
33
  #web_links = ["https://www.databricks.com/","https://help.databricks.com","https://docs.databricks.com","https://kb.databricks.com/","http://docs.databricks.com/getting-started/index.html","http://docs.databricks.com/introduction/index.html","http://docs.databricks.com/getting-started/tutorials/index.html","http://docs.databricks.com/machine-learning/index.html","http://docs.databricks.com/sql/index.html"]
34
  #loader = WebBaseLoader(web_links)
35
  #documents = loader.load()
 
38
 
39
  # download_from_google_drive(gdown_file_id)
40
 
41
+ # file_id = os.getenv(gdown_file_id) # Replace with your file ID
42
  download_from_google_drive(file_id)
43
  zip_file_path = "/content/chroma_db-complete.zip" # Replace with your zip file path
44
  extract_path = "/chroma_db"