jenngang commited on
Commit
812d805
·
verified ·
1 Parent(s): 1d22989

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -579,8 +579,8 @@ class NutritionBot:
579
  # Initialize the OpenAI client using the provided credentials
580
  self.client = ChatOpenAI(
581
  model_name="gpt-4o", # Used gpt-4o to get improved results; Specify the model to use (e.g., GPT-4 optimized version)
582
- api_key=config.get("API_KEY"), # API key for authentication
583
- endpoint = config.get("OPENAI_API_BASE"),
584
  temperature=0 # Controls randomness in responses; 0 ensures deterministic results
585
  )
586
 
 
579
  # Initialize the OpenAI client using the provided credentials
580
  self.client = ChatOpenAI(
581
  model_name="gpt-4o", # Used gpt-4o to get improved results; Specify the model to use (e.g., GPT-4 optimized version)
582
+ api_key=api_key, # API key for authentication
583
+ endpoint = endpoint,
584
  temperature=0 # Controls randomness in responses; 0 ensures deterministic results
585
  )
586