Anne31415 commited on
Commit
d3de2d8
·
1 Parent(s): dd46c68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- api_key = st.secrets["OPENAI_API_KEY"]
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.')