Update app.py
Browse files
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=
|
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,
|