Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,10 +55,10 @@ from datetime import datetime
|
|
| 55 |
|
| 56 |
#====================================SETUP=====================================#
|
| 57 |
# Fetch secrets from Hugging Face Spaces
|
| 58 |
-
api_key = os.
|
| 59 |
-
endpoint = os.
|
| 60 |
-
llama_api_key = os.
|
| 61 |
-
MEM0_api_key = os.
|
| 62 |
|
| 63 |
# Initialize the OpenAI embedding function for Chroma
|
| 64 |
embedding_function = chromadb.utils.embedding_functions.OpenAIEmbeddingFunction(
|
|
|
|
| 55 |
|
| 56 |
#====================================SETUP=====================================#
|
| 57 |
# Fetch secrets from Hugging Face Spaces
|
| 58 |
+
api_key = os.getenv("API_KEY")
|
| 59 |
+
endpoint = os.getenv("OPENAI_API_BASE")
|
| 60 |
+
llama_api_key = os.getenv['GROQ_API_KEY']
|
| 61 |
+
MEM0_api_key = os.getenv['mem0']
|
| 62 |
|
| 63 |
# Initialize the OpenAI embedding function for Chroma
|
| 64 |
embedding_function = chromadb.utils.embedding_functions.OpenAIEmbeddingFunction(
|