Spaces:
Sleeping
Sleeping
Download constants.py from itsmeadarsh/PDF-Falcon: direct link, hf CLI and curl.
- Browser
- Download file 480 Bytes
-
https://huggingface.co/spaces/itsmeadarsh/PDF-Falcon/resolve/main/constants.py
- Command line
-
hf download hf://spaces/itsmeadarsh/PDF-Falcon/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/itsmeadarsh/PDF-Falcon/resolve/main/constants.py
480 Bytes
| import os | |
| # from dotenv import load_dotenv | |
| from chromadb.config import Settings | |
| # load_dotenv() | |
| ROOT_DIRECTORY = os.path.dirname(os.path.realpath(__file__)) | |
| # Define the folder for storing database | |
| SOURCE_DIRECTORY = f"{ROOT_DIRECTORY}/SOURCE_DOCUMENTS" | |
| PERSIST_DIRECTORY = f"{ROOT_DIRECTORY}/DB" | |
| # Define the Chroma settings | |
| CHROMA_SETTINGS = Settings( | |
| chroma_db_impl='duckdb+parquet', | |
| persist_directory=PERSIST_DIRECTORY, | |
| anonymized_telemetry=False | |
| ) |