Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -159,7 +159,7 @@ def identify_headers_with_openrouter(pdf_path, model, LLM_prompt, pages_to_check
|
|
| 159 |
# continue
|
| 160 |
for s in spans:
|
| 161 |
# text,font,size,flags,color
|
| 162 |
-
ArrayofTextWithFormat={
|
| 163 |
|
| 164 |
# prefix with page for easier mapping back
|
| 165 |
lines_for_prompt.append(f"PAGE {pno+1}: {ArrayofTextWithFormat}")
|
|
|
|
| 159 |
# continue
|
| 160 |
for s in spans:
|
| 161 |
# text,font,size,flags,color
|
| 162 |
+
ArrayofTextWithFormat={s.get('text')}
|
| 163 |
|
| 164 |
# prefix with page for easier mapping back
|
| 165 |
lines_for_prompt.append(f"PAGE {pno+1}: {ArrayofTextWithFormat}")
|