nniehaus commited on
Commit
6f07b18
·
1 Parent(s): c90a021

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import streamlit as st
2
  import openai
3
 
4
- # Set the OpenAI API key
5
- openai.api_key = "YOUR_OPENAI_API_KEY"
6
 
7
  st.title("Investment Property Finder in Breckenridge and Blue River, CO")
8
 
 
1
  import streamlit as st
2
  import openai
3
 
4
+ # Access the OpenAI API key from Hugging Face Spaces secrets
5
+ openai.api_key = st.secrets["OPENAI_API_KEY"]
6
 
7
  st.title("Investment Property Finder in Breckenridge and Blue River, CO")
8