prernasingh commited on
Commit
81e5e91
·
verified ·
1 Parent(s): 544e703

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -564,7 +564,11 @@ class NutritionBot:
564
  # Initialize a memory client to store and retrieve customer interactions
565
  # self.memory = MemoryClient(api_key=userdata.get("MEM0_API_KEY")) # Complete the code to define the memory client API key
566
 
567
- self.memory = MemoryClient(api_key=MEM0_api_key) # Complete the code to define the memory client API key
 
 
 
 
568
 
569
  endpoint = os.environ['OPENAI_API_BASE']
570
  print("endpoint: ", endpoint)
 
564
  # Initialize a memory client to store and retrieve customer interactions
565
  # self.memory = MemoryClient(api_key=userdata.get("MEM0_API_KEY")) # Complete the code to define the memory client API key
566
 
567
+ # self.memory = MemoryClient(api_key=MEM0_api_key) # Complete the code to define the memory client API key
568
+ self.client = client
569
+ self.memory = MemoryClient(api_key=userdata.get("MEM0_API_KEY"))
570
+ self.conversation_history = {}
571
+
572
 
573
  endpoint = os.environ['OPENAI_API_BASE']
574
  print("endpoint: ", endpoint)