Download src/constants.py from godmodefounder/prescription-explainer-medgemma: direct link, hf CLI and curl.
- Browser
- Download file 921 Bytes
-
https://huggingface.co/spaces/godmodefounder/prescription-explainer-medgemma/resolve/main/src/constants.py
- Command line
-
hf download hf://spaces/godmodefounder/prescription-explainer-medgemma/src/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/godmodefounder/prescription-explainer-medgemma/resolve/main/src/constants.py
921 Bytes
| """Application constants for Prescription Explainer.""" | |
| import os | |
| from dotenv import load_dotenv | |
| # Load environment variables first | |
| load_dotenv() | |
| # Model identifiers (for reference) | |
| MEDGEMMA_MODEL_ID = "google/medgemma-1.5-4b-it" | |
| TRANSLATION_MODEL_ID = "google/gemma-3-4b-it" # Gemma 3 for translation | |
| SEALION_MODEL_ID = "aisingapore/Gemma-SEA-LION-v4-27B-IT" | |
| # Vertex AI Configuration | |
| VERTEX_PROJECT_ID = "bmap-kaggle-medgemma" # From your service account JSON | |
| VERTEX_LOCATION = os.getenv("VERTEX_LOCATION", "us-central1") | |
| VERTEX_ENDPOINT_ID = os.getenv("VERTEX_ENDPOINT_ID", "") | |
| VERTEX_CREDENTIALS_PATH = "vertex-ai-key.json" | |
| # Supported languages with display names and codes | |
| SUPPORTED_LANGUAGES = { | |
| "English": "en", | |
| "Thai": "th", | |
| "Indonesian": "id", | |
| "Vietnamese": "vi", | |
| "Cambodian (Khmer)": "km", | |
| "Hindi": "hi", | |
| "Mandarin (Simplified)": "zh", | |
| } | |
| # FHIR constants | |
| FHIR_VERSION = "R4" | |