Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -584,7 +584,8 @@ class NutritionBot:
|
|
584 |
# Initialize the OpenAI client using the provided credentials
|
585 |
self.client = ChatOpenAI(
|
586 |
model_name="gpt-4o", # Used gpt-4o to get improved results; Specify the model to use (e.g., GPT-4 optimized version)
|
587 |
-
api_key=my_api_key, # API key for authentication
|
|
|
588 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
589 |
)
|
590 |
st.write("Got client...")
|
|
|
584 |
# Initialize the OpenAI client using the provided credentials
|
585 |
self.client = ChatOpenAI(
|
586 |
model_name="gpt-4o", # Used gpt-4o to get improved results; Specify the model to use (e.g., GPT-4 optimized version)
|
587 |
+
#api_key=my_api_key, # API key for authentication
|
588 |
+
api_key="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", # API key for authentication
|
589 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
590 |
)
|
591 |
st.write("Got client...")
|