BtB-ExpC commited on
Commit
617a7ec
·
1 Parent(s): 65aa3b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -250,7 +250,7 @@ def chatbot(input):
250
 
251
  if distractors_index != -1:
252
  # Extract the afleiders into the distractors list and remove any trailing periods
253
- distractors = [line.rstrip('.').strip for line in lines[distractors_index + 1:] if line.strip()]
254
  else:
255
  # Handle the case where "Afleiders:" is not found
256
  distractors = []
 
250
 
251
  if distractors_index != -1:
252
  # Extract the afleiders into the distractors list and remove any trailing periods
253
+ distractors = [line.rstrip('.').strip() for line in lines[distractors_index + 1:] if line.strip()]
254
  else:
255
  # Handle the case where "Afleiders:" is not found
256
  distractors = []