Neurolingua commited on
Commit
2134402
1 Parent(s): d979e46

Update teacher_function.py

Browse files
Files changed (1) hide show
  1. teacher_function.py +1 -1
teacher_function.py CHANGED
@@ -30,7 +30,7 @@ def generate_questions_from_text(text, no_of_questions, marks_per_part, no_parts
30
  if chunk.choices[0].delta.content:
31
  questions.append(chunk.choices[0].delta.content)
32
 
33
- return "".join(questions.replace('\n','<br>'))
34
 
35
  def extract_text_from_image(image_path):
36
  img = cv2.imread(image_path)
 
30
  if chunk.choices[0].delta.content:
31
  questions.append(chunk.choices[0].delta.content)
32
 
33
+ return "".join(questions).replace('\n','<br>')
34
 
35
  def extract_text_from_image(image_path):
36
  img = cv2.imread(image_path)