juliensimon HF staff commited on
Commit
d0dbd25
1 Parent(s): d58e925

Truncate sentences

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)