Spaces:
Running
Running
deveix
commited on
Commit
·
b4cb1c3
1
Parent(s):
a707b10
blocks
Browse files- app/main.py +1 -1
app/main.py
CHANGED
@@ -118,7 +118,7 @@ def get_text_by_block_number(filepath, block_numbers):
|
|
118 |
blocks_text = []
|
119 |
with open(filepath, 'r', encoding='utf-8') as file:
|
120 |
content = file.read() # Read the whole file at once
|
121 |
-
blocks = content.split("\n\n") # Split the content by double newlines
|
122 |
|
123 |
for block_number, block in enumerate(blocks, 1): # Starting block numbers at 1 for human readability
|
124 |
if block_number in block_numbers:
|
|
|
118 |
blocks_text = []
|
119 |
with open(filepath, 'r', encoding='utf-8') as file:
|
120 |
content = file.read() # Read the whole file at once
|
121 |
+
blocks = content.split("\n\n\n") # Split the content by double newlines
|
122 |
|
123 |
for block_number, block in enumerate(blocks, 1): # Starting block numbers at 1 for human readability
|
124 |
if block_number in block_numbers:
|