ajanz commited on
Commit
daf64e1
·
1 Parent(s): 165779a

reverting old changes

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -43,7 +43,6 @@ index = load_index()
43
 
44
 
45
  def predict(text: str = sample_text, top_k: int=3):
46
- text = text + "".join(['[PAD]'] * 252)
47
  index_data, faiss_index = index
48
  # takes only the [CLS] embedding (for now)
49
  query = model(text, return_tensors='pt')[0][0].numpy().reshape(1, -1)
 
43
 
44
 
45
  def predict(text: str = sample_text, top_k: int=3):
 
46
  index_data, faiss_index = index
47
  # takes only the [CLS] embedding (for now)
48
  query = model(text, return_tensors='pt')[0][0].numpy().reshape(1, -1)