Update file_operations.py

This commit is contained in:
ZHAOKAI WANG
2023-04-21 13:03:52 +08:00
committed by GitHub
parent a2e75aabdd
commit 45a9ff6e74

View File

@@ -72,7 +72,7 @@ def split_file(
while start < content_length: while start < content_length:
end = start + max_length end = start + max_length
if end + overlap < content_length: if end + overlap < content_length:
chunk = content[start:end + overlap - 1] chunk = content[start: end + overlap - 1]
else: else:
chunk = content[start:content_length] chunk = content[start:content_length]