Spaces:
Sleeping
Sleeping
model update
Browse files
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 = {
|