Neurolingua commited on
Commit
7b8c8d6
·
verified ·
1 Parent(s): ac2e58a

Update teacher_function.py

Browse files
Files changed (1) hide show
  1. teacher_function.py +1 -4
teacher_function.py CHANGED
@@ -55,13 +55,12 @@ def extract_text_from_image(image_path):
55
 
56
 
57
 
58
-
59
-
60
  def evaluate(question, answer, max_marks):
61
  prompt = f"""Questions: {question}
62
  Answer: {answer}
63
 
64
  Evaluate each question based on the provided answers and assign marks out of {max_marks}. Use the following guidelines to assign marks:
 
65
  - If the answer is very accurate and complete, give full marks.
66
  - If the answer is good but not completely accurate, give full marks minus 1.
67
  - If the answer is somewhat accurate, give full marks minus 2, and so on.
@@ -85,8 +84,6 @@ Total marks: """
85
  ):
86
  if chunk.choices[0].delta.content:
87
  response_content += chunk.choices[0].delta.content
88
- print(response_content)
89
-
90
  return response_content
91
 
92
  def generate_student_report(name, age, cgpa, course, assigned_test, ai_test, interests, difficulty, courses_taken):
 
55
 
56
 
57
 
 
 
58
  def evaluate(question, answer, max_marks):
59
  prompt = f"""Questions: {question}
60
  Answer: {answer}
61
 
62
  Evaluate each question based on the provided answers and assign marks out of {max_marks}. Use the following guidelines to assign marks:
63
+ - If the answer is irrelevent and incomplete, give 0 marks.
64
  - If the answer is very accurate and complete, give full marks.
65
  - If the answer is good but not completely accurate, give full marks minus 1.
66
  - If the answer is somewhat accurate, give full marks minus 2, and so on.
 
84
  ):
85
  if chunk.choices[0].delta.content:
86
  response_content += chunk.choices[0].delta.content
 
 
87
  return response_content
88
 
89
  def generate_student_report(name, age, cgpa, course, assigned_test, ai_test, interests, difficulty, courses_taken):