remove last comma and space from sources
Browse files
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[:-
|
| 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 = ""
|