joshuarauh commited on
Commit
521f13c
·
verified ·
1 Parent(s): 60b557b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -836,7 +836,7 @@ def generate_question(subject, difficulty, question_type, subtopic=None, use_enh
836
  difficulty_params = get_difficulty_parameters(difficulty)
837
  problem_type_addition = get_problem_type_addition(question_type)
838
 
839
- system_prompt = f"""Write exactly one {question_type} exam question on {subject} covering {selected_topic} that can be solved analytically, without numerical methods.
840
  STRICT REQUIREMENTS:
841
  1. Begin the output with the text "Here is a test question that is a {question_type} question on {subject} covering {selected_topic}."
842
  2. Difficulty Level Guidelines:
@@ -977,7 +977,7 @@ make sure the question is CLEAR about what regions you intend to be included in
977
  max_tokens=4096,
978
  temperature=0.9,
979
  messages=[{
980
- "role": "You are a mathematics professor",
981
  "content": f"{system_prompt}"
982
  }]
983
  )
 
836
  difficulty_params = get_difficulty_parameters(difficulty)
837
  problem_type_addition = get_problem_type_addition(question_type)
838
 
839
+ system_prompt = f"""You are a mathematics professor. Write exactly one {question_type} exam question on {subject} covering {selected_topic} that can be solved analytically, without numerical methods.
840
  STRICT REQUIREMENTS:
841
  1. Begin the output with the text "Here is a test question that is a {question_type} question on {subject} covering {selected_topic}."
842
  2. Difficulty Level Guidelines:
 
977
  max_tokens=4096,
978
  temperature=0.9,
979
  messages=[{
980
+ "role": "user",
981
  "content": f"{system_prompt}"
982
  }]
983
  )