trish06 commited on
Commit
72ca143
·
verified ·
1 Parent(s): 0d636f8

Update backend/main.py

Browse files
Files changed (1) hide show
  1. backend/main.py +1 -1
backend/main.py CHANGED
@@ -124,7 +124,7 @@ def extract_text_from_pdf(pdf_path: str) -> str:
124
  )
125
 
126
  if methods_match and len(methods_match.group(2).strip()) > 200:
127
- text = methods_match.group(2)
128
  else:
129
  chars = len(text)
130
  text = text[chars // 10: chars // 10 + 15000]
 
124
  )
125
 
126
  if methods_match and len(methods_match.group(2).strip()) > 200:
127
+ text = methods_match.group(1)
128
  else:
129
  chars = len(text)
130
  text = text[chars // 10: chars // 10 + 15000]