LeeKinXUn commited on
Commit
ed7fa5a
·
1 Parent(s): 4f52632

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,10 +48,10 @@ retriever = EmbeddingRetriever(
48
  scale_score=False,
49
  )
50
 
51
-
52
  df['embedding'] = retriever.embed_queries(queries=question).tolist()
53
  df = df.rename(columns={'question': 'content'})
54
- question = list(df['question'].values)
55
  docs_to_index = df.to_dict(orient='records')
56
  document_store.write_documents(docs_to_index)
57
 
 
48
  scale_score=False,
49
  )
50
 
51
+ question = list(df['question'].values)
52
  df['embedding'] = retriever.embed_queries(queries=question).tolist()
53
  df = df.rename(columns={'question': 'content'})
54
+
55
  docs_to_index = df.to_dict(orient='records')
56
  document_store.write_documents(docs_to_index)
57