Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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[
|
| 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[0]
|
| 33 |
note = f"✅ Found marker '{split_marker}', using the latest block."
|
| 34 |
else:
|
| 35 |
latest_block = full_text
|