Spaces:
Running
on
T4
Running
on
T4
Julien Simon
commited on
Commit
·
d0dbd25
1
Parent(s):
d58e925
Truncate sentences
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def find_sentences(query, hits):
|
|
63 |
'Ticker' : doc['ticker'],
|
64 |
'Form type' : doc['form_type'],
|
65 |
'Filing date': doc['filing_date'],
|
66 |
-
'Text' : corpus[corpus_id],
|
67 |
'Score' : '{:.2f}'.format(hit['score'])
|
68 |
}
|
69 |
output = output.append(new_row, ignore_index=True)
|
|
|
63 |
'Ticker' : doc['ticker'],
|
64 |
'Form type' : doc['form_type'],
|
65 |
'Filing date': doc['filing_date'],
|
66 |
+
'Text' : corpus[corpus_id][:80],
|
67 |
'Score' : '{:.2f}'.format(hit['score'])
|
68 |
}
|
69 |
output = output.append(new_row, ignore_index=True)
|