Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -580,7 +580,7 @@ class NutritionBot:
|
|
580 |
# Initialize the OpenAI client using the provided credentials
|
581 |
self.client = ChatOpenAI(
|
582 |
model_name="gpt-4o", # Used gpt-4o to get improved results; Specify the model to use (e.g., GPT-4 optimized version)
|
583 |
-
api_key=
|
584 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
585 |
)
|
586 |
print("Got client...")
|
|
|
580 |
# Initialize the OpenAI client using the provided credentials
|
581 |
self.client = ChatOpenAI(
|
582 |
model_name="gpt-4o", # Used gpt-4o to get improved results; Specify the model to use (e.g., GPT-4 optimized version)
|
583 |
+
api_key=api_key, # API key for authentication
|
584 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
585 |
)
|
586 |
print("Got client...")
|