Spaces:
Runtime error
Runtime error
Update tasks/text.py
Browse files- tasks/text.py +1 -1
tasks/text.py
CHANGED
|
@@ -67,7 +67,7 @@ async def evaluate_text(request: TextEvaluationRequest):
|
|
| 67 |
)
|
| 68 |
|
| 69 |
# Extract texts from the test dataset for inference
|
| 70 |
-
texts = [example["
|
| 71 |
|
| 72 |
# Perform predictions using the model
|
| 73 |
raw_predictions = classifier(texts)
|
|
|
|
| 67 |
)
|
| 68 |
|
| 69 |
# Extract texts from the test dataset for inference
|
| 70 |
+
texts = [example["quote"] for example in test_dataset]
|
| 71 |
|
| 72 |
# Perform predictions using the model
|
| 73 |
raw_predictions = classifier(texts)
|