Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,13 @@
|
|
1 |
import openai
|
2 |
import streamlit as st
|
3 |
|
4 |
-
#
|
5 |
-
|
|
|
|
|
6 |
|
7 |
-
|
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")
|