rbuell commited on
Commit
e876f40
·
1 Parent(s): 284139b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -12,12 +12,12 @@ openai.api_key = api_key
12
 
13
  def write_sidebar():
14
  st.sidebar.title("Instructions")
15
- st.sidebar.write("1. Select the student's grade level.")
16
- st.sidebar.write("2. Select the student's qualifying condition(s).")
17
- st.sidebar.write("3. Choose a category to analyze.")
18
- st.sidebar.write("4. Select whether you want to generate a PLAAFP statement or an effective IEP goal.")
19
- st.sidebar.write("5. Enter your student data.")
20
- st.sidebar.write("6. Click the 'Generate' button to generate the selected output.")
21
 
22
  st.sidebar.write("")
23
  st.sidebar.write("")
@@ -28,11 +28,11 @@ def write_iep_assist():
28
  st.title("IEP Assist Premium")
29
 
30
  # Select the student's grade level
31
- st.write("Select the student's grade level:")
32
  grade_level = st.selectbox("Grade:", ["Pre-K", "K", "1st", "2nd", "3rd", "4th", "5th", "6th", "7th", "8th", "9th", "10th", "11th", "12th"], key="grade-level")
33
 
34
  # Select the student's qualifying condition
35
- st.write("Select the student's qualifying condition(s):")
36
  qualifying_condition = st.multiselect("Qualifying Condition(s):", ["Specific Learning Disability", "Emotional Disturbance", "Autism", "Intellectual Disability", "Speech/Language Impairment", "Other Health Impairment", "Orthopedic Impairment", "Auditory Impairment", "Traumatic Brain Injury", "Deafness", "Blindness", "Developmental Delay"], key="qualifying-condition")
37
 
38
  # Define prompts by category
@@ -58,19 +58,19 @@ def write_iep_assist():
58
  }
59
 
60
  # Choose a category
61
- st.write("Choose a category to analyze:")
62
  selected_category = st.selectbox("Category:", options=list(prompt_categories.keys()), key="category")
63
 
64
  # Choose the output type
65
  generate_goal = st.checkbox("Generate Effective IEP Goal")
66
 
67
  # Choose a prompt from the selected category
68
- st.write("Choose a prompt:")
69
  prompts = prompt_categories[selected_category]
70
  selected_prompt = st.selectbox("Prompt:", options=prompts, key="prompt")
71
 
72
  # Enter student data to be analyzed
73
- st.write("Enter student data to be analyzed:")
74
  student_data = st.text_area("Paste student data here", height=250, key="student-data")
75
 
76
  # Add a button to generate the PLAAFP statement or effective IEP goal
@@ -91,7 +91,7 @@ def write_iep_assist():
91
  goal = response["choices"][0]["text"]
92
 
93
  # Show the generated effective IEP goal
94
- st.write("Effective IEP Goal:", goal)
95
  else:
96
  # Call the OpenAI API and generate a PLAAFP statement
97
  response = openai.Completion.create(
@@ -105,7 +105,7 @@ def write_iep_assist():
105
  statement = response["choices"][0]["text"]
106
 
107
  # Show the generated PLAAFP statement
108
- st.write("Summary of Data entered:", statement)
109
 
110
  if __name__ == "__main__":
111
  write_sidebar()
 
12
 
13
  def write_sidebar():
14
  st.sidebar.title("Instructions")
15
+ st.sidebar.markdown("**1. Select the student's grade level.**")
16
+ st.sidebar.markdown("**2. Select the student's qualifying condition(s).**")
17
+ st.sidebar.markdown("**3. Choose a category to analyze.**")
18
+ st.sidebar.markdown("**4. Select whether you want to generate a PLAAFP statement or an effective IEP goal.**")
19
+ st.sidebar.markdown("**5. Enter your student data.**")
20
+ st.sidebar.markdown("**6. Click the 'Generate' button to generate the selected output.**")
21
 
22
  st.sidebar.write("")
23
  st.sidebar.write("")
 
28
  st.title("IEP Assist Premium")
29
 
30
  # Select the student's grade level
31
+ st.markdown("<h3>Select the student's grade level:</h3>", unsafe_allow_html=True)
32
  grade_level = st.selectbox("Grade:", ["Pre-K", "K", "1st", "2nd", "3rd", "4th", "5th", "6th", "7th", "8th", "9th", "10th", "11th", "12th"], key="grade-level")
33
 
34
  # Select the student's qualifying condition
35
+ st.markdown("<h3>Select the student's qualifying condition(s):</h3>", unsafe_allow_html=True)
36
  qualifying_condition = st.multiselect("Qualifying Condition(s):", ["Specific Learning Disability", "Emotional Disturbance", "Autism", "Intellectual Disability", "Speech/Language Impairment", "Other Health Impairment", "Orthopedic Impairment", "Auditory Impairment", "Traumatic Brain Injury", "Deafness", "Blindness", "Developmental Delay"], key="qualifying-condition")
37
 
38
  # Define prompts by category
 
58
  }
59
 
60
  # Choose a category
61
+ st.markdown("<h3>Choose a category to analyze:</h3>", unsafe_allow_html=True)
62
  selected_category = st.selectbox("Category:", options=list(prompt_categories.keys()), key="category")
63
 
64
  # Choose the output type
65
  generate_goal = st.checkbox("Generate Effective IEP Goal")
66
 
67
  # Choose a prompt from the selected category
68
+ st.markdown("<h3>Choose a prompt:</h3>", unsafe_allow_html=True)
69
  prompts = prompt_categories[selected_category]
70
  selected_prompt = st.selectbox("Prompt:", options=prompts, key="prompt")
71
 
72
  # Enter student data to be analyzed
73
+ st.markdown("<h3>Enter student data to be analyzed:</h3>", unsafe_allow_html=True)
74
  student_data = st.text_area("Paste student data here", height=250, key="student-data")
75
 
76
  # Add a button to generate the PLAAFP statement or effective IEP goal
 
91
  goal = response["choices"][0]["text"]
92
 
93
  # Show the generated effective IEP goal
94
+ st.markdown(f"<h3>Effective IEP Goal:</h3>{goal}", unsafe_allow_html=True)
95
  else:
96
  # Call the OpenAI API and generate a PLAAFP statement
97
  response = openai.Completion.create(
 
105
  statement = response["choices"][0]["text"]
106
 
107
  # Show the generated PLAAFP statement
108
+ st.markdown(f"<h3>Summary of Data entered:</h3>{statement}", unsafe_allow_html=True)
109
 
110
  if __name__ == "__main__":
111
  write_sidebar()