Benjamin Consolvo
commited on
Commit
·
c274166
1
Parent(s):
aa03e58
test without api_key
Browse files- .gitignore +1 -0
- app.py +3 -2
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
app_v2.py
|
app.py
CHANGED
@@ -20,7 +20,7 @@ endpoint_data = json.load(open(f"{working_dir}/model_info.json"))
|
|
20 |
def clear_chat():
|
21 |
st.session_state.messages = []
|
22 |
|
23 |
-
st.title("
|
24 |
|
25 |
# Extract the keys (model names) from the JSON data
|
26 |
model_names = list(endpoint_data.keys())
|
@@ -33,7 +33,8 @@ with st.sidebar:
|
|
33 |
endpoint = endpoint_data[modelname]
|
34 |
|
35 |
# api_key=os.environ.get('API_KEY')
|
36 |
-
api_key = st.secrets["openai_apikey"]
|
|
|
37 |
|
38 |
if not api_key:
|
39 |
st.info("Please add your OpenAI API key to continue.")
|
|
|
20 |
def clear_chat():
|
21 |
st.session_state.messages = []
|
22 |
|
23 |
+
st.title("Intel® AI for Enterprise Inference - Chatbot")
|
24 |
|
25 |
# Extract the keys (model names) from the JSON data
|
26 |
model_names = list(endpoint_data.keys())
|
|
|
33 |
endpoint = endpoint_data[modelname]
|
34 |
|
35 |
# api_key=os.environ.get('API_KEY')
|
36 |
+
# api_key = st.secrets["openai_apikey"]
|
37 |
+
api_key = None
|
38 |
|
39 |
if not api_key:
|
40 |
st.info("Please add your OpenAI API key to continue.")
|