jenngang commited on
Commit
e3262ec
·
verified ·
1 Parent(s): 9840b64

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -583,12 +583,12 @@ class NutritionBot:
583
  #)
584
 
585
  self.client = ChatOpenAI(
586
- #openai_api_base=endpoint,
587
- api_key=api_key,
588
- openai_api_key=api_key,
589
  model="gpt-4o",
 
590
  streaming=False, # Explicitly disabling streaming
591
- temperature=0
 
 
592
  )
593
 
594
  # Define tools available to the chatbot, such as web search
 
583
  #)
584
 
585
  self.client = ChatOpenAI(
 
 
 
586
  model="gpt-4o",
587
+ temperature=0.0,
588
  streaming=False, # Explicitly disabling streaming
589
+ api_key=api_key,
590
+ openai_api_key=api_key,
591
+ openai_api_base=endpoint
592
  )
593
 
594
  # Define tools available to the chatbot, such as web search