Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -577,10 +577,12 @@ class NutritionBot:
|
|
577 |
self.memory = MemoryClient(api_key=MEM0_api_key) # userdata.get("mem0")) # Complete the code to define the memory client API key
|
578 |
st.write("Got memory...")
|
579 |
|
|
|
|
|
580 |
# Initialize the OpenAI client using the provided credentials
|
581 |
self.client = ChatOpenAI(
|
582 |
model_name="gpt-4o", # Used gpt-4o to get improved results; Specify the model to use (e.g., GPT-4 optimized version)
|
583 |
-
api_key=
|
584 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
585 |
)
|
586 |
st.write("Got client...")
|
|
|
577 |
self.memory = MemoryClient(api_key=MEM0_api_key) # userdata.get("mem0")) # Complete the code to define the memory client API key
|
578 |
st.write("Got memory...")
|
579 |
|
580 |
+
st.write(f"my_api_key: {my_api_key}")
|
581 |
+
|
582 |
# Initialize the OpenAI client using the provided credentials
|
583 |
self.client = ChatOpenAI(
|
584 |
model_name="gpt-4o", # Used gpt-4o to get improved results; Specify the model to use (e.g., GPT-4 optimized version)
|
585 |
+
api_key=my_api_key, # API key for authentication
|
586 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
587 |
)
|
588 |
st.write("Got client...")
|