Spaces:
Runtime error
Runtime error
now download from gdown and should be ready to use
Browse files
app.py
CHANGED
@@ -23,9 +23,15 @@ from utils import download_from_google_drive
|
|
23 |
#loader = WebBaseLoader(web_links)
|
24 |
#documents = loader.load()
|
25 |
|
26 |
-
gdown_file_id = os.getenv(gdown_file_id)
|
27 |
|
28 |
-
download_from_google_drive(gdown_file_id)
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
db = Chroma(persist_directory="./chroma_db", embedding_function=embeddings)
|
31 |
db.get()
|
|
|
23 |
#loader = WebBaseLoader(web_links)
|
24 |
#documents = loader.load()
|
25 |
|
26 |
+
# gdown_file_id = os.getenv(gdown_file_id)
|
27 |
|
28 |
+
# download_from_google_drive(gdown_file_id)
|
29 |
+
|
30 |
+
file_id = os.getenv(gdown_file_id) # Replace with your file ID
|
31 |
+
download_from_google_drive(file_id)
|
32 |
+
zip_file_path = "/content/chroma_db-complete.zip" # Replace with your zip file path
|
33 |
+
extract_path = "/chroma_db"
|
34 |
+
unzip_file(zip_file_path,extract_path)
|
35 |
|
36 |
db = Chroma(persist_directory="./chroma_db", embedding_function=embeddings)
|
37 |
db.get()
|