Spaces:
Build error
Build error
Upload app.py with huggingface_hub
Browse files
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 |
-
|
| 568 |
-
self.client = client
|
| 569 |
-
self.memory = MemoryClient(api_key=userdata.get("MEM0_API_KEY"))
|
| 570 |
-
self.conversation_history = {}
|
| 571 |
|
| 572 |
-
|
| 573 |
-
endpoint
|
| 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(
|