Fix ISCO code format in app.py and update test cases in tests.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def launch_gradio_widget(metric, test_cases):
|
|
50 |
outputs=gr.outputs.Textbox(label=metric.name),
|
51 |
description=(
|
52 |
metric.info.description
|
53 |
-
+ "\nISCO codes must be wrapped in double quotes."
|
54 |
# " Alternatively you can use a JSON-formatted list as input."
|
55 |
),
|
56 |
title=f"Metric: {metric.name}",
|
|
|
50 |
outputs=gr.outputs.Textbox(label=metric.name),
|
51 |
description=(
|
52 |
metric.info.description
|
53 |
+
# + "\nISCO codes must be wrapped in double quotes."
|
54 |
# " Alternatively you can use a JSON-formatted list as input."
|
55 |
),
|
56 |
title=f"Metric: {metric.name}",
|
tests.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
test_cases = [
|
2 |
{
|
3 |
-
"references": [
|
4 |
-
"predictions": [
|
5 |
"result": {
|
6 |
"accuracy": 0.25,
|
7 |
"hierarchical_precision": 1.0,
|
|
|
1 |
test_cases = [
|
2 |
{
|
3 |
+
"references": [1111, 1111, 1111, 1111],
|
4 |
+
"predictions": [1111, 1112, 1120, 1211],
|
5 |
"result": {
|
6 |
"accuracy": 0.25,
|
7 |
"hierarchical_precision": 1.0,
|