Benjamin Consolvo
commited on
Commit
·
bd481ed
1
Parent(s):
0dc0782
session secrets api key
Browse files
app.py
CHANGED
|
@@ -16,6 +16,8 @@ st.title("Intel® AI for Enterprise Inference \n Chatbot")
|
|
| 16 |
# Extract the keys (model names) from the JSON data
|
| 17 |
model_names = list(endpoint_data.keys())
|
| 18 |
|
|
|
|
|
|
|
| 19 |
with st.sidebar:
|
| 20 |
modelname = st.selectbox("Select a LLM model (Running on Intel® Gaudi®) ", model_names)
|
| 21 |
st.write(f"You selected: {modelname}")
|
|
|
|
| 16 |
# Extract the keys (model names) from the JSON data
|
| 17 |
model_names = list(endpoint_data.keys())
|
| 18 |
|
| 19 |
+
st.session_state.api_key = st.secrets["openai_apikey"]
|
| 20 |
+
|
| 21 |
with st.sidebar:
|
| 22 |
modelname = st.selectbox("Select a LLM model (Running on Intel® Gaudi®) ", model_names)
|
| 23 |
st.write(f"You selected: {modelname}")
|