ppsingh commited on
Commit
3c4b33d
1 Parent(s): e5fddb6

add reader

Browse files
Files changed (1) hide show
  1. utils/reader_qa.py +1 -1
utils/reader_qa.py CHANGED
@@ -85,7 +85,7 @@ def reader_highlight(haystack_doc:pd.DataFrame,
85
  # # getting the sector label and scores
86
  list_ = []
87
  for i in range(len(predictions)):
88
- list_.append(predictions['answer'])
89
  df1['Extracted Text'] = list_
90
 
91
  df = pd.concat([df,df1])
 
85
  # # getting the sector label and scores
86
  list_ = []
87
  for i in range(len(predictions)):
88
+ list_.append(predictions[i]['answer'])
89
  df1['Extracted Text'] = list_
90
 
91
  df = pd.concat([df,df1])