rawanessam commited on
Commit
68db6aa
·
verified ·
1 Parent(s): 94261fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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={'Font':s.get('font')},{'Size':s.get('size')},{'Flags':s.get('flags')},{'Color':s.get('color')},{'Text':s.get('text')}
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={'Text':s.get('text')}
163
 
164
  # prefix with page for easier mapping back
165
  lines_for_prompt.append(f"PAGE {pno+1}: {ArrayofTextWithFormat}")