yasserrmd commited on
Commit
b40d89a
1 Parent(s): b973eef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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