Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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":
|
| 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=[
|