Commit ·
6469f49
1
Parent(s): 215e416
Update app.py
Browse files43 unmodified lines44454647484950511 unmodified line53545556575859606143 unmodified lines loop = True count = 1 print(f'Total Length: {total_len}') while loop: end = start + window_length # If the end index exceeds total length, set the flag to False and adjust the end index1 unmodified line loop = False end = total_len
print(f'Start: {start}') print(f'End: {end}') # 1 => Define the text chunk input_ids_chunk = input_ids[start : end] attention_mask_chunk = attention_mask[start : end]app.py+5