mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 17:05:41 +01:00
Merge pull request #822 from VaiTon/fix/env-not-existing
Better error message if .env is empty/does not exist.
This commit is contained in:
commit
2940f987c0
3 changed files with 10 additions and 5 deletions
|
|
@ -6,6 +6,8 @@ load_dotenv()
|
|||
|
||||
# Define the folder for storing database
|
||||
PERSIST_DIRECTORY = os.environ.get('PERSIST_DIRECTORY')
|
||||
if PERSIST_DIRECTORY is None:
|
||||
raise Exception("Please set the PERSIST_DIRECTORY environment variable")
|
||||
|
||||
# Define the Chroma settings
|
||||
CHROMA_SETTINGS = Settings(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue