jenngang commited on
Commit
05760a9
·
verified ·
1 Parent(s): 2230634

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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=api_key, # API key for authentication
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...")