jenngang commited on
Commit
5f960ff
·
verified ·
1 Parent(s): 6275adf

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -579,11 +579,12 @@ class NutritionBot:
579
 
580
  st.write("Got memory...")
581
  st.write(f"api_key: {api_key}")
 
582
 
583
  # Initialize the OpenAI client using the provided credentials
584
  self.client = ChatOpenAI(
585
- model_name="gpt-4o-mini", # Used gpt-4o to get improved results; Specify the model to use (e.g., GPT-4 optimized version)
586
- api_key=api_key, # API key for authentication
587
  temperature=0 # Controls randomness in responses; 0 ensures deterministic results
588
  )
589
  st.write("Got client...")
 
579
 
580
  st.write("Got memory...")
581
  st.write(f"api_key: {api_key}")
582
+ st.write(f"my_api_key: {my_api_key}")
583
 
584
  # Initialize the OpenAI client using the provided credentials
585
  self.client = ChatOpenAI(
586
+ model_name="gpt-4o", # Used gpt-4o to get improved results; Specify the model to use (e.g., GPT-4 optimized version)
587
+ api_key=my_api_key, # API key for authentication
588
  temperature=0 # Controls randomness in responses; 0 ensures deterministic results
589
  )
590
  st.write("Got client...")