Francesco-A commited on
Commit
88bf2e7
1 Parent(s): 698a434
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ contexts = [
78
  def QA_similarity(question, contexts, n_answers=1):
79
 
80
  context_df = pd.DataFrame(contexts,columns=['Context'])
81
- contexts = context_df.iloc[:,0].to_list()
82
 
83
  # to use 'clips/mfaq' questions need to be prepended with <Q>, and answers with <A>.
84
  question = "<Q>"+question
 
78
  def QA_similarity(question, contexts, n_answers=1):
79
 
80
  context_df = pd.DataFrame(contexts,columns=['Context'])
81
+ contexts = context_df['Context'].to_list()
82
 
83
  # to use 'clips/mfaq' questions need to be prepended with <Q>, and answers with <A>.
84
  question = "<Q>"+question