chansung commited on
Commit
ac97fd6
1 Parent(s): f74f104

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def get_model(base_name='intfloat/e5-large-v2'):
17
  # get normalized scores on input_texts, the final scores are
18
  # reported without queries, and the number of queries should
19
  # be denoted as in how_many_q
20
- def get_scores(model, tokenizer, input_texts, max_length=512, how_many_q=1, normalize=False):
21
  # Tokenize the input texts
22
  batch_dict = tokenizer(
23
  input_texts,
 
17
  # get normalized scores on input_texts, the final scores are
18
  # reported without queries, and the number of queries should
19
  # be denoted as in how_many_q
20
+ def get_scores(model, tokenizer, input_texts, max_length=512, how_many_q=1, normalize=True):
21
  # Tokenize the input texts
22
  batch_dict = tokenizer(
23
  input_texts,