Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import tempfile
|
|
| 6 |
import requests
|
| 7 |
import urllib.parse
|
| 8 |
import io
|
| 9 |
-
|
| 10 |
from huggingface_hub import HfApi, login
|
| 11 |
from PyPDF2 import PdfReader
|
| 12 |
from langchain_huggingface import HuggingFaceEmbeddings
|
|
@@ -437,7 +437,7 @@ def initialize():
|
|
| 437 |
|
| 438 |
# Ensure the directory exists
|
| 439 |
os.makedirs(vectorstore_path, exist_ok=True)
|
| 440 |
-
|
| 441 |
vectorstore = get_chroma_vectorstore2(EMBEDDING_MODEL_NAME)
|
| 442 |
|
| 443 |
initialize()
|
|
|
|
| 6 |
import requests
|
| 7 |
import urllib.parse
|
| 8 |
import io
|
| 9 |
+
from langchain import Chroma
|
| 10 |
from huggingface_hub import HfApi, login
|
| 11 |
from PyPDF2 import PdfReader
|
| 12 |
from langchain_huggingface import HuggingFaceEmbeddings
|
|
|
|
| 437 |
|
| 438 |
# Ensure the directory exists
|
| 439 |
os.makedirs(vectorstore_path, exist_ok=True)
|
| 440 |
+
print("Subdirectories:", [d for d in os.listdir(os.getcwd()) if os.path.isdir(os.path.join(os.getcwd(), d))])
|
| 441 |
vectorstore = get_chroma_vectorstore2(EMBEDDING_MODEL_NAME)
|
| 442 |
|
| 443 |
initialize()
|