Update app.py
Browse files
app.py
CHANGED
|
@@ -18,11 +18,10 @@ nltk.download('punkt')
|
|
| 18 |
with st.sidebar:
|
| 19 |
st.title(':orange_book: BinDoc GmbH')
|
| 20 |
|
| 21 |
-
# Securely store the API key
|
| 22 |
-
st.secrets("OPENAI_API_KEY")
|
| 23 |
|
|
|
|
| 24 |
# Retrieve the API key from st.secrets
|
| 25 |
-
|
| 26 |
|
| 27 |
if not api_key:
|
| 28 |
st.warning('API key is required to proceed.')
|
|
|
|
| 18 |
with st.sidebar:
|
| 19 |
st.title(':orange_book: BinDoc GmbH')
|
| 20 |
|
|
|
|
|
|
|
| 21 |
|
| 22 |
+
api_key = os.getenv("OPENAI_API_KEY")
|
| 23 |
# Retrieve the API key from st.secrets
|
| 24 |
+
|
| 25 |
|
| 26 |
if not api_key:
|
| 27 |
st.warning('API key is required to proceed.')
|