Spaces:
Running
Running
model update
Browse files- app.py +1 -1
- fine-tuned_all-distilroberta-v1_quantized.onnx +2 -2
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,
|
| 23 |
|
| 24 |
# Run inference
|
| 25 |
ort_inputs = {
|
|
|
|
| 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 = {
|
fine-tuned_all-distilroberta-v1_quantized.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1302f752e0972c9dd6db3658176bb1932d3edbc0961f4d3bf5f0143ebd468ca
|
| 3 |
+
size 82521329
|