PRSHNTKUMR commited on
Commit
577efd3
·
verified ·
1 Parent(s): ccfaaf0

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -14,7 +14,7 @@ import PyPDF2
14
  from docx import Document
15
 
16
  # Get API key from Streamlit secrets
17
- API_KEY = st.secrets["OPENAI_API_KEY"]
18
 
19
  # Initialize Chroma
20
  embeddings_model = OpenAIEmbeddings(openai_api_key=API_KEY)
 
14
  from docx import Document
15
 
16
  # Get API key from Streamlit secrets
17
+ API_KEY = os.getenv("OPENAI_API_KEY")
18
 
19
  # Initialize Chroma
20
  embeddings_model = OpenAIEmbeddings(openai_api_key=API_KEY)