joycecast commited on
Commit
00b95cb
·
verified ·
1 Parent(s): d2d693b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def check_latest_section(pdf_url, identifiers_input, split_marker):
29
  # Step 4: Split by user-defined marker (optional)
30
  if split_marker.strip() and split_marker in full_text:
31
  parts = full_text.split(split_marker)
32
- latest_block = parts[0]
33
  note = f"✅ Found marker '{split_marker}', using the latest block."
34
  else:
35
  latest_block = full_text
 
29
  # Step 4: Split by user-defined marker (optional)
30
  if split_marker.strip() and split_marker in full_text:
31
  parts = full_text.split(split_marker)
32
+ latest_block = parts[1]
33
  note = f"✅ Found marker '{split_marker}', using the latest block."
34
  else:
35
  latest_block = full_text