Spaces:
Running
Running
changing the api keys reading
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def init_resources():
|
|
| 24 |
# Try to load from environment variables first (for Spaces)
|
| 25 |
llm_api_key = os.getenv("SAMBANOVA_API_KEY")
|
| 26 |
website = os.getenv("WEBSITE")
|
| 27 |
-
embedding_model_name = os.getenv("
|
| 28 |
system_prompt = os.getenv("SYSTEM_PROMPT", "You are a helpful assistant.")
|
| 29 |
|
| 30 |
# Fallback to config.yaml if env vars not set
|
|
|
|
| 24 |
# Try to load from environment variables first (for Spaces)
|
| 25 |
llm_api_key = os.getenv("SAMBANOVA_API_KEY")
|
| 26 |
website = os.getenv("WEBSITE")
|
| 27 |
+
embedding_model_name = os.getenv("EMBED_MODEL", "sentence-transformers/all-MiniLM-L6-v2")
|
| 28 |
system_prompt = os.getenv("SYSTEM_PROMPT", "You are a helpful assistant.")
|
| 29 |
|
| 30 |
# Fallback to config.yaml if env vars not set
|