Spaces:
Sleeping
Sleeping
Update backend/main.py
Browse files- backend/main.py +1 -1
backend/main.py
CHANGED
|
@@ -110,7 +110,7 @@ def extract_text_from_pdf(pdf_path: str) -> str:
|
|
| 110 |
)
|
| 111 |
|
| 112 |
if methods_match and len(methods_match.group(1).strip()) > 200:
|
| 113 |
-
text = methods_match.group(
|
| 114 |
else:
|
| 115 |
chars = len(text)
|
| 116 |
text = text[chars // 10: chars // 10 + 15000]
|
|
|
|
| 110 |
)
|
| 111 |
|
| 112 |
if methods_match and len(methods_match.group(1).strip()) > 200:
|
| 113 |
+
text = methods_match.group(2)
|
| 114 |
else:
|
| 115 |
chars = len(text)
|
| 116 |
text = text[chars // 10: chars // 10 + 15000]
|