calmgoose commited on
Commit
f294285
·
1 Parent(s): ca68d7b

remove last comma and space from sources

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def get_answer(question):
105
  unique_pages += str(item) + ", "
106
 
107
  # will look like 1, 2, 3,
108
- pages = unique_pages[:-1] # removes the last comma
109
 
110
  # source text
111
  full_source = ""
 
105
  unique_pages += str(item) + ", "
106
 
107
  # will look like 1, 2, 3,
108
+ pages = unique_pages[:-2] # removes the last comma and space
109
 
110
  # source text
111
  full_source = ""