zzarif commited on
Commit
9382969
·
1 Parent(s): d702028

model update

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def predict_similarity(question, candidate_answer, ai_answer):
19
 
20
  # Tokenize inputs
21
  inputs = tokenizer([candidate_combined, ai_combined],
22
- padding=True, truncation=True, return_tensors="np")
23
 
24
  # Run inference
25
  ort_inputs = {
 
19
 
20
  # Tokenize inputs
21
  inputs = tokenizer([candidate_combined, ai_combined],
22
+ padding=True, truncation=True, max_length=11, return_tensors="np")
23
 
24
  # Run inference
25
  ort_inputs = {