Spaces:
Sleeping
Sleeping
Update backend/main.py
Browse files- 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(
|
| 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]
|