Spaces:
Running
Running
File size: 467 Bytes
98caf15 8aab0fd 98caf15 8aab0fd 98caf15 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from pydantic_settings import BaseSettings
import os
class Settings(BaseSettings):
huggingface_key: str = os.environ.get("huggingface_key")
OPENAI_API_KEY: str = os.environ.get("OPENAI_API_KEY")
cache_dir: str = "cache"
embedding_api: str = "sbert"
embedding_model: str = "mano-wii/BAAI_bge-base-en-v1.5-tunned-for-blender-issues"
# embedding_api: str = "openai"
# embedding_model: str = "text-embedding-ada-002"
settings = Settings()
|