Alishba Siddique
fix: replace Google embeddings with HuggingFace sentence-transformers (no API key needed)
7483ad4 Download server/core/settings.py from alishba38/curemind: direct link, hf CLI and curl.
- Browser
- Download file 528 Bytes
-
https://huggingface.co/spaces/alishba38/curemind/resolve/main/server/core/settings.py
- Command line
-
hf download hf://spaces/alishba38/curemind/server/core/settings.py
-
curl -L -o settings.py https://huggingface.co/spaces/alishba38/curemind/resolve/main/server/core/settings.py
528 Bytes
| from functools import lru_cache | |
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| class Settings(BaseSettings): | |
| model_config = SettingsConfigDict( | |
| env_file=".env", | |
| env_file_encoding="utf-8", | |
| case_sensitive=False, | |
| ) | |
| google_api_key: str = "" | |
| groq_api_key: str | |
| pinecone_api_key: str | |
| pinecone_index_name: str = "medicalindex" | |
| pinecone_region: str = "us-east-1" | |
| huggingface_hub_token: str = "" | |
| def get_settings() -> Settings: | |
| return Settings() | |