Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -63,7 +63,6 @@ emb_key = os.environ['EMB_MODEL_KEY']
|
|
63 |
emb_endpoint = os.environ['EMB_DEPLOYMENT']
|
64 |
#llama_api_key = os.environ['GROQ_API_KEY']
|
65 |
llama_api_key = os.environ['LLAMA_API_KEY']
|
66 |
-
MEM0_api_key = os.environ['mem0']
|
67 |
|
68 |
# Initialize the OpenAI embedding function for Chroma
|
69 |
embedding_function = chromadb.utils.embedding_functions.OpenAIEmbeddingFunction(
|
@@ -611,7 +610,7 @@ class NutritionBot:
|
|
611 |
|
612 |
# Initialize a memory client to store and retrieve customer interactions
|
613 |
#self.memory = MemoryClient(api_key=userdata.get("mem0")) # Complete the code to define the memory client API key
|
614 |
-
self.memory = MemoryClient(api_key = userdata.get("
|
615 |
|
616 |
# Initialize the Azure OpenAI client using the provided credentials
|
617 |
self.client = AzureChatOpenAI(
|
|
|
63 |
emb_endpoint = os.environ['EMB_DEPLOYMENT']
|
64 |
#llama_api_key = os.environ['GROQ_API_KEY']
|
65 |
llama_api_key = os.environ['LLAMA_API_KEY']
|
|
|
66 |
|
67 |
# Initialize the OpenAI embedding function for Chroma
|
68 |
embedding_function = chromadb.utils.embedding_functions.OpenAIEmbeddingFunction(
|
|
|
610 |
|
611 |
# Initialize a memory client to store and retrieve customer interactions
|
612 |
#self.memory = MemoryClient(api_key=userdata.get("mem0")) # Complete the code to define the memory client API key
|
613 |
+
self.memory = MemoryClient(api_key = userdata.get("mem0"))
|
614 |
|
615 |
# Initialize the Azure OpenAI client using the provided credentials
|
616 |
self.client = AzureChatOpenAI(
|