Remove trailing periods from distractors
Browse files248 unmodified lines249250251252253254255256248 unmodified linesbreakif distractors_index != -1:# Extract the afleiders into the distractors listdistractors = [line.strip() for line in lines[distractors_index + 1:] if line.strip()]else:# Handle the case where "Afleiders:" is not founddistractors = []248 unmodified lines249250251252253254255256248 unmodified linesbreakif distractors_index != -1:# Extract the afleiders into the distractors list and remove any trailing periodsdistractors = [line.rstrip('.').strip for line in lines[distractors_index + 1:] if line.strip()]else:# Handle the case where "Afleiders:" is not founddistractors = []
app.py+2-2