Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -610,7 +610,10 @@ class NutritionBot:
|
|
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 =
|
|
|
|
|
|
|
614 |
|
615 |
# Initialize the Azure OpenAI client using the provided credentials
|
616 |
self.client = AzureChatOpenAI(
|
|
|
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 = os.environ["mem0"]) # Complete the code to define the memory client API key
|
614 |
+
|
615 |
+
|
616 |
+
client = AsyncMemoryClient()
|
617 |
|
618 |
# Initialize the Azure OpenAI client using the provided credentials
|
619 |
self.client = AzureChatOpenAI(
|