Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -45,10 +45,11 @@ st.markdown(
45
  st.title("A.I Lesson Plan for Teachers")
46
 
47
  # Ask for age
48
- age = st.number_input("Enter your age", min_value=0, max_value=100, step=1)
49
 
50
  # Ask for subject and provide a text area
51
  subject = st.text_area("Enter the subject")
 
52
  board = st.text_area("Enter the board ex: edexcel, aqa, IB or CBSE")
53
 
54
  # Complexity levels
@@ -61,7 +62,7 @@ plan_duration = st.selectbox("Select the duration of the plan", ["1 hour", "1 we
61
  # Generate lesson plan
62
  if st.button("Generate Lesson Plan"):
63
  # Define the prompt for ChatGPT
64
- prompt = f"Generate a detailed lesson plan along with a few topic examples for teaching {subject} to {age}-year-old students. The lesson plan should have a complexity level of {complexity} and a duration of {plan_duration}.The lesson plan should follow the {board} exam board."
65
 
66
  # Call the OpenAI API to generate the lesson plan
67
  response = openai.Completion.create(
 
45
  st.title("A.I Lesson Plan for Teachers")
46
 
47
  # Ask for age
48
+ age = st.number_input("Enter learner's age", min_value=0, max_value=100, step=1)
49
 
50
  # Ask for subject and provide a text area
51
  subject = st.text_area("Enter the subject")
52
+ topic= st.text_area("Enter the topic")
53
  board = st.text_area("Enter the board ex: edexcel, aqa, IB or CBSE")
54
 
55
  # Complexity levels
 
62
  # Generate lesson plan
63
  if st.button("Generate Lesson Plan"):
64
  # Define the prompt for ChatGPT
65
+ prompt = f"Generate a detailed lesson plan along with few topic examples for teaching {subject} to {age}-year-old students with objectives that are SMART, Methodology include ice breakers, teacher exposition, practice and wrap up and apart from this it should also include resource and assessment criteria. The lesson plan should have a complexity level of {complexity} and a duration of {plan_duration}.The lesson plan should follow the {board} exam board."
66
 
67
  # Call the OpenAI API to generate the lesson plan
68
  response = openai.Completion.create(