Spaces:
Sleeping
Sleeping
Update tasks/text.py
Browse files- tasks/text.py +2 -2
tasks/text.py
CHANGED
|
@@ -15,7 +15,7 @@ import numpy as np
|
|
| 15 |
|
| 16 |
router = APIRouter()
|
| 17 |
|
| 18 |
-
DESCRIPTION = "
|
| 19 |
ROUTE = "/text"
|
| 20 |
|
| 21 |
@router.post(ROUTE, tags=["Text Task"],
|
|
@@ -65,7 +65,7 @@ async def evaluate_text(request: TextEvaluationRequest):
|
|
| 65 |
# Make random predictions (placeholder for actual model inference)
|
| 66 |
true_labels = test_dataset["label"]
|
| 67 |
# predictions = [random.randint(0, 7) for _ in range(len(true_labels))]
|
| 68 |
-
path_model = 'MatthiasPi/
|
| 69 |
path_tokenizer = "answerdotai/ModernBERT-base"
|
| 70 |
|
| 71 |
model = AutoModelForSequenceClassification.from_pretrained(path_model)
|
|
|
|
| 15 |
|
| 16 |
router = APIRouter()
|
| 17 |
|
| 18 |
+
DESCRIPTION = "modernBERT_finetuned"
|
| 19 |
ROUTE = "/text"
|
| 20 |
|
| 21 |
@router.post(ROUTE, tags=["Text Task"],
|
|
|
|
| 65 |
# Make random predictions (placeholder for actual model inference)
|
| 66 |
true_labels = test_dataset["label"]
|
| 67 |
# predictions = [random.randint(0, 7) for _ in range(len(true_labels))]
|
| 68 |
+
path_model = 'MatthiasPi/modernbert_finetunedV1'
|
| 69 |
path_tokenizer = "answerdotai/ModernBERT-base"
|
| 70 |
|
| 71 |
model = AutoModelForSequenceClassification.from_pretrained(path_model)
|