Commit ·
3fa33fe
1
Parent(s): 14d3804
Fix: HF_TOKEN no default, add defaults for API_BASE_URL and MODEL_NAME
Browse files- inference.py +3 -3
inference.py
CHANGED
|
@@ -35,9 +35,9 @@ load_dotenv()
|
|
| 35 |
# Configuration
|
| 36 |
# ============================================================================
|
| 37 |
|
| 38 |
-
API_BASE_URL = os.environ.get("API_BASE_URL", "")
|
| 39 |
-
MODEL_NAME = os.environ.get("MODEL_NAME", "")
|
| 40 |
-
HF_TOKEN = os.environ.get("HF_TOKEN"
|
| 41 |
|
| 42 |
# Environment server URL (Hugging Face Space or local)
|
| 43 |
ENV_URL = os.environ.get("ENV_URL", "http://localhost:7860")
|
|
|
|
| 35 |
# Configuration
|
| 36 |
# ============================================================================
|
| 37 |
|
| 38 |
+
API_BASE_URL = os.environ.get("API_BASE_URL", "https://api.groq.com/openai/v1")
|
| 39 |
+
MODEL_NAME = os.environ.get("MODEL_NAME", "llama-3.1-8b-instant")
|
| 40 |
+
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 41 |
|
| 42 |
# Environment server URL (Hugging Face Space or local)
|
| 43 |
ENV_URL = os.environ.get("ENV_URL", "http://localhost:7860")
|