Benjamin Consolvo
commited on
Commit
·
1bf3cbd
1
Parent(s):
bd481ed
app.py
CHANGED
|
@@ -16,14 +16,14 @@ 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 |
-
st.session_state.api_key = st.secrets["
|
| 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}")
|
| 24 |
st.button("Start New Chat", on_click=clear_chat)
|
| 25 |
|
| 26 |
-
# Add a text input for the API key
|
| 27 |
api_key = st.text_input("Enter your API Key", type="password")
|
| 28 |
if api_key:
|
| 29 |
st.session_state.api_key = api_key
|
|
|
|
| 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_apikey2"]
|
| 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}")
|
| 24 |
st.button("Start New Chat", on_click=clear_chat)
|
| 25 |
|
| 26 |
+
# Add a text input for the API key if
|
| 27 |
api_key = st.text_input("Enter your API Key", type="password")
|
| 28 |
if api_key:
|
| 29 |
st.session_state.api_key = api_key
|