rbuell commited on
Commit
4ded032
1 Parent(s): 8d2c2a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -10
app.py CHANGED
@@ -1,17 +1,13 @@
1
  import openai
2
  import streamlit as st
3
 
4
- # Set OpenAI API key
5
- openai.api_key = "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"
 
 
6
 
7
- st.markdown(
8
- """
9
- <style>
10
- /* Add your CSS code here */
11
- </style>
12
- """,
13
- unsafe_allow_html=True,
14
- )
15
 
16
  def write_iep():
17
  st.title("IEP Assist")
 
1
  import openai
2
  import streamlit as st
3
 
4
+ # Get API key from environment variable
5
+ api_key = os.environ.get("API_KEY")
6
+ if api_key is None:
7
+ raise ValueError("API_KEY environment variable not set")
8
 
9
+ # Set API key for OpenAI
10
+ openai.api_key = api_key
 
 
 
 
 
 
11
 
12
  def write_iep():
13
  st.title("IEP Assist")