stckwok commited on
Commit
4fc6bc4
·
verified ·
1 Parent(s): a00cd27

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -642,8 +642,8 @@ class NutritionBot:
642
 
643
  self.client = ChatOpenAI(
644
  model_name="gpt-4o-mini", # Specify the model to use (e.g., GPT-4 optimized version)
645
- api_key=api_key #config.get("API_KEY"), # API key for authentication
646
- base_url=endpoint #config.get("OPENAI_API_BASE"),
647
  temperature=0, # Controls randomness in responses; 0 ensures deterministic results
648
  streaming=False
649
  )
 
642
 
643
  self.client = ChatOpenAI(
644
  model_name="gpt-4o-mini", # Specify the model to use (e.g., GPT-4 optimized version)
645
+ api_key=api_key, #config.get("API_KEY"), # API key for authentication
646
+ base_url=endpoint, #config.get("OPENAI_API_BASE"),
647
  temperature=0, # Controls randomness in responses; 0 ensures deterministic results
648
  streaming=False
649
  )