Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = []
|