Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,6 @@ st.title("AWS Well-Architected Review")
|
|
13 |
st.write("Get recommendations for optimizing your AWS architecture.")
|
14 |
|
15 |
|
16 |
-
if "nvidia_model" not in st.session_state:
|
17 |
-
st.session_state["nvidia_model"] = "nvidia/llama-3.1-nemotron-70b-instruct"
|
18 |
-
|
19 |
if "messages" not in st.session_state:
|
20 |
st.session_state.messages = [
|
21 |
{"role": "system", "content": "You are an assistant that provides recommendations based on AWS Well-Architected Review best practices. Focus on the 5 pillars: Operational Excellence, Security, Reliability, Performance Efficiency, and Cost Optimization."}
|
@@ -34,7 +31,7 @@ if st.button("Get Recommendations"):
|
|
34 |
with st.spinner("Generating recommendations..."):
|
35 |
# Create Nvidia completion request with conversation history
|
36 |
stream = client.chat.completions.create(
|
37 |
-
model="nvidia
|
38 |
messages=st.session_state.messages, # Include all messages in the API call
|
39 |
temperature=0.5,
|
40 |
top_p=0.7,
|
|
|
13 |
st.write("Get recommendations for optimizing your AWS architecture.")
|
14 |
|
15 |
|
|
|
|
|
|
|
16 |
if "messages" not in st.session_state:
|
17 |
st.session_state.messages = [
|
18 |
{"role": "system", "content": "You are an assistant that provides recommendations based on AWS Well-Architected Review best practices. Focus on the 5 pillars: Operational Excellence, Security, Reliability, Performance Efficiency, and Cost Optimization."}
|
|
|
31 |
with st.spinner("Generating recommendations..."):
|
32 |
# Create Nvidia completion request with conversation history
|
33 |
stream = client.chat.completions.create(
|
34 |
+
model="nvidia/llama-3.1-nemotron-70b-instruct", # Nvidia model name
|
35 |
messages=st.session_state.messages, # Include all messages in the API call
|
36 |
temperature=0.5,
|
37 |
top_p=0.7,
|