Update app.py
Browse files
app.py
CHANGED
@@ -187,7 +187,7 @@ ask = col2.button("Ask")
|
|
187 |
|
188 |
if ask:
|
189 |
|
190 |
-
if
|
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:
|