calmgoose commited on
Commit
eeefa5d
·
1 Parent(s): aa70bde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -187,7 +187,7 @@ ask = col2.button("Ask")
187
 
188
  if ask:
189
 
190
- if api_key is "":
191
  st.write(f"**{BOOK_NAME}:** Whoops looks like you forgot your API key buddy")
192
  st.stop()
193
  else:
 
187
 
188
  if ask:
189
 
190
+ if (choice=="openai" and os.environ["OPENAI_API_KEY"]=="") or (choice=="togethercomputer/GPT-NeoXT-Chat-Base-20B" and os.environ["HUGGINGFACEHUB_API_TOKEN"]==""):
191
  st.write(f"**{BOOK_NAME}:** Whoops looks like you forgot your API key buddy")
192
  st.stop()
193
  else: