Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from openai import OpenAI
|
|
5 |
# Initialize the Nvidia API client using API Key stored in Streamlit secrets
|
6 |
client = OpenAI(
|
7 |
base_url="https://integrate.api.nvidia.com/v1", # Nvidia API endpoint
|
8 |
-
api_key=st.secrets["NVIDIA_API_KEY"] # Nvidia API Key from Streamlit secrets
|
9 |
)
|
10 |
|
11 |
# Define Streamlit app layout
|
|
|
5 |
# Initialize the Nvidia API client using API Key stored in Streamlit secrets
|
6 |
client = OpenAI(
|
7 |
base_url="https://integrate.api.nvidia.com/v1", # Nvidia API endpoint
|
8 |
+
api_key= os.getenv("NVIDIA_API_KEY") #st.secrets["NVIDIA_API_KEY"] # Nvidia API Key from Streamlit secrets
|
9 |
)
|
10 |
|
11 |
# Define Streamlit app layout
|