Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,12 @@ from langchain_huggingface import HuggingFaceEndpoint
|
|
19 |
from dotenv import load_dotenv
|
20 |
load_dotenv()
|
21 |
HF_token = os.environ["HF_TOKEN"]
|
|
|
22 |
# process all files and get the vectorstores collections
|
23 |
-
|
|
|
|
|
|
|
24 |
|
25 |
# -------------------------------------------------------------
|
26 |
# Functions
|
|
|
19 |
from dotenv import load_dotenv
|
20 |
load_dotenv()
|
21 |
HF_token = os.environ["HF_TOKEN"]
|
22 |
+
######## Vector Store #######
|
23 |
# process all files and get the vectorstores collections
|
24 |
+
# vectorestore colection are stored on persistent storage so this needs to be run only once
|
25 |
+
# hence, comment out line below when creating for first time
|
26 |
+
# vectorstores = process_pdf()
|
27 |
+
#------now we will only use the existing embedding----------
|
28 |
|
29 |
# -------------------------------------------------------------
|
30 |
# Functions
|