Daaku-C5 commited on
Commit
34e8f79
·
verified ·
1 Parent(s): 80d9f5a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -16,7 +16,7 @@ RECORD_DURATION = 5
16
  TEMP_AUDIO_FILE = "temp_audio.wav"
17
 
18
  # Initialize OpenAI client
19
- api_key = st.secrets['openai']
20
  client = OpenAI(api_key=api_key)
21
 
22
  # Initialize session state variables if they don't exist
 
16
  TEMP_AUDIO_FILE = "temp_audio.wav"
17
 
18
  # Initialize OpenAI client
19
+ api_key = os.environ.get("openai")
20
  client = OpenAI(api_key=api_key)
21
 
22
  # Initialize session state variables if they don't exist