Michaeldavidstein commited on
Commit
22936c7
·
verified ·
1 Parent(s): 486f4c0

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -582,7 +582,7 @@ class NutritionBot:
582
  print(f"Using custom OpenAI API base: {api_base}")
583
 
584
  # Initialize a memory client to store and retrieve customer interactions
585
- self.memory = MemoryClient(api_key=userdata.get("mem0_api_key"))
586
  print("Memory client initialized.")
587
 
588
  # Initialize the OpenAI client using the provided credentials, custom API base, and model
 
582
  print(f"Using custom OpenAI API base: {api_base}")
583
 
584
  # Initialize a memory client to store and retrieve customer interactions
585
+ self.memory = MemoryClient(api_key=os.getenv("mem0_api_key")) # Fixed the userdata reference
586
  print("Memory client initialized.")
587
 
588
  # Initialize the OpenAI client using the provided credentials, custom API base, and model