joshuarauh commited on
Commit
f656a5d
·
verified ·
1 Parent(s): bdcc083

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -638,10 +638,16 @@ Format your response with clear headers and bullet points."""
638
 
639
  # Call OpenAI API
640
  response = openai.chat.completions.create(
641
- model="o1-preview", # Using o1-preview now
642
  messages=[
643
- {"role": "system", "content": "You are an expert mathematics professor grading student solutions."},
644
- {"role": "user", "content": verification_prompt}
 
 
 
 
 
 
645
  ],
646
  temperature=0.3
647
  )
 
638
 
639
  # Call OpenAI API
640
  response = openai.chat.completions.create(
641
+ model="o1-preview",
642
  messages=[
643
+ {
644
+ "role": "assistant",
645
+ "content": "I am an expert mathematics professor who grades student solutions carefully and accurately."
646
+ },
647
+ {
648
+ "role": "user",
649
+ "content": verification_prompt
650
+ }
651
  ],
652
  temperature=0.3
653
  )