Update teacher_function.py
Browse files- teacher_function.py +3 -2
teacher_function.py
CHANGED
|
@@ -63,8 +63,8 @@ def evaluate(question, answer, max_marks):
|
|
| 63 |
|
| 64 |
|
| 65 |
Evaluate above questions one by one(if there are multiple) by provided answers and assign marks out of {max_marks}. No need overall score. Note that as maximum mark increases, the size of the answer must be large enough to get good marks. Give ouput in format below:
|
| 66 |
-
|
| 67 |
-
|
| 68 |
Note that you should not display total marks"""
|
| 69 |
|
| 70 |
messages = [
|
|
@@ -80,6 +80,7 @@ Note that you should not display total marks"""
|
|
| 80 |
):
|
| 81 |
if chunk.choices[0].delta.content:
|
| 82 |
response_content += chunk.choices[0].delta.content
|
|
|
|
| 83 |
|
| 84 |
return response_content
|
| 85 |
|
|
|
|
| 63 |
|
| 64 |
|
| 65 |
Evaluate above questions one by one(if there are multiple) by provided answers and assign marks out of {max_marks}. No need overall score. Note that as maximum mark increases, the size of the answer must be large enough to get good marks. Give ouput in format below:
|
| 66 |
+
Assigned marks:
|
| 67 |
+
Total marks:
|
| 68 |
Note that you should not display total marks"""
|
| 69 |
|
| 70 |
messages = [
|
|
|
|
| 80 |
):
|
| 81 |
if chunk.choices[0].delta.content:
|
| 82 |
response_content += chunk.choices[0].delta.content
|
| 83 |
+
print(response_content)
|
| 84 |
|
| 85 |
return response_content
|
| 86 |
|