Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
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=
|
583 |
-
endpoint =
|
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 |
|