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

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -564,14 +564,10 @@ 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
- 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)
575
 
576
  # Initialize the OpenAI client using the provided credentials
577
  self.client = ChatOpenAI(
 
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)
 
571
 
572
  # Initialize the OpenAI client using the provided credentials
573
  self.client = ChatOpenAI(