nryadav18 commited on
Commit
a0b3172
·
verified ·
1 Parent(s): c73bb3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ async def evaluate_code(request: EvalRequest):
30
  system_prompt = """You are an encouraging Python tutor. Evaluate the code.
31
  RULES: Score 0-100 integer. Praise effort first. Give 1-2 friendly tips.
32
  Output ONLY a valid JSON object matching this schema:
33
- {"score": 85, "feedback": "Great job...", "improvements": ["Tip 1"]}"""
34
 
35
  response = llm.create_chat_completion(
36
  messages=[
 
30
  system_prompt = """You are an encouraging Python tutor. Evaluate the code.
31
  RULES: Score 0-100 integer. Praise effort first. Give 1-2 friendly tips.
32
  Output ONLY a valid JSON object matching this schema:
33
+ {"score": 0 to 100 based on correctness of code with respect to task description, "feedback": "Great job...", "improvements": ["Tip 1"]}"""
34
 
35
  response = llm.create_chat_completion(
36
  messages=[