Spaces:
Running
Running
Update app.py
Browse files
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 =
|
7 |
-
|
8 |
-
|
9 |
)
|
10 |
-
|
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.")
|