Spaces:
Runtime error
Runtime error
domenicrosati
commited on
Commit
Β·
29232c3
1
Parent(s):
4b582d1
abstract snip
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ def find_source(text, docs, matched):
|
|
116 |
|
117 |
context = remove_html(doc[3]).replace('<strong class="highlight">', '').replace('</strong>', '')
|
118 |
if sent_loc:
|
119 |
-
context_len =
|
120 |
sent_beg = sent_loc - context_len
|
121 |
if sent_beg <= 0: sent_beg = 0
|
122 |
sent_end = sent_loc + context_len
|
|
|
116 |
|
117 |
context = remove_html(doc[3]).replace('<strong class="highlight">', '').replace('</strong>', '')
|
118 |
if sent_loc:
|
119 |
+
context_len = 3
|
120 |
sent_beg = sent_loc - context_len
|
121 |
if sent_beg <= 0: sent_beg = 0
|
122 |
sent_end = sent_loc + context_len
|