yasserrmd commited on
Commit
25eb713
1 Parent(s): 4e0ff9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -3,11 +3,11 @@ import os
3
  from openai import OpenAI
4
 
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
- print(os.getenv("NVIDIA_API_KEY"))
11
  # Define Streamlit app layout
12
  st.title("AWS Well-Architected Review")
13
  st.write("Get recommendations for optimizing your AWS architecture.")
 
3
  from openai import OpenAI
4
 
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",
8
+ api_key = os.getenv("NVIDIA_API_KEY")
9
  )
10
+
11
  # Define Streamlit app layout
12
  st.title("AWS Well-Architected Review")
13
  st.write("Get recommendations for optimizing your AWS architecture.")