Spaces:
Runtime error
Runtime error
Download constants.py from Praneethdodedu/private-gpt: direct link, hf CLI and curl.
- Browser
- Download file 372 Bytes
-
https://huggingface.co/spaces/Praneethdodedu/private-gpt/resolve/main/constants.py
- Command line
-
hf download hf://spaces/Praneethdodedu/private-gpt/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/Praneethdodedu/private-gpt/resolve/main/constants.py
372 Bytes
| import os | |
| from dotenv import load_dotenv | |
| from chromadb.config import Settings | |
| load_dotenv() | |
| # Define the folder for storing database | |
| PERSIST_DIRECTORY = os.environ.get('PERSIST_DIRECTORY') | |
| # Define the Chroma settings | |
| CHROMA_SETTINGS = Settings( | |
| chroma_db_impl='duckdb+parquet', | |
| persist_directory=PERSIST_DIRECTORY, | |
| anonymized_telemetry=False | |
| ) | |