noname122e1e commited on
Commit
d15d250
1 Parent(s): 41c9701

update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -49,18 +49,19 @@ 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
 
53
  # Complexity levels
54
  complexity_levels = ["Beginner", "Intermediate", "Advanced", "Expert", "Master"]
55
  complexity = st.selectbox("Select the complexity level", complexity_levels)
56
 
57
  # Number of days
58
- plan_duration = st.selectbox("Select the duration of the plan", ["1 week", "1 month", "3 months", "6 months"])
59
 
60
  # Generate lesson plan
61
  if st.button("Generate Lesson Plan"):
62
  # Define the prompt for ChatGPT
63
- prompt = f"Generate a lesson plan for teaching {subject} to {age}-year-old students. The lesson plan should have a complexity level of {complexity} and a duration of {plan_duration}."
64
 
65
  # Call the OpenAI API to generate the lesson plan
66
  response = openai.Completion.create(
 
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
55
  complexity_levels = ["Beginner", "Intermediate", "Advanced", "Expert", "Master"]
56
  complexity = st.selectbox("Select the complexity level", complexity_levels)
57
 
58
  # Number of days
59
+ plan_duration = st.selectbox("Select the duration of the plan", ["1 hour", "1 week", "1 month", "3 months","6 months"])
60
 
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(