Spaces:
Build error
Build error
Update text.py
Browse files- tasks/text.py +1 -1
tasks/text.py
CHANGED
|
@@ -44,7 +44,7 @@ async def evaluate_text(request: TextEvaluationRequest):
|
|
| 44 |
dataset = dataset.map(lambda x: {"label": LABEL_MAPPING[x["label"]]})
|
| 45 |
|
| 46 |
# Split dataset
|
| 47 |
-
train_test =
|
| 48 |
test_dataset = train_test["test"]
|
| 49 |
|
| 50 |
# Start tracking emissions
|
|
|
|
| 44 |
dataset = dataset.map(lambda x: {"label": LABEL_MAPPING[x["label"]]})
|
| 45 |
|
| 46 |
# Split dataset
|
| 47 |
+
train_test = train_test["train"]
|
| 48 |
test_dataset = train_test["test"]
|
| 49 |
|
| 50 |
# Start tracking emissions
|