Update src/streamlit_app.py
Browse files- 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 =
|
| 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
|