Spaces:
Build error
Build error
Update Gradio widget examples
Browse files
app.py
CHANGED
@@ -55,9 +55,13 @@ def launch_gradio_widget(metric, test_cases):
|
|
55 |
),
|
56 |
title=f"Metric: {metric.name}",
|
57 |
article=parse_readme(local_path / "README.md"),
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
59 |
)
|
60 |
-
|
61 |
iface.launch()
|
62 |
|
63 |
|
|
|
55 |
),
|
56 |
title=f"Metric: {metric.name}",
|
57 |
article=parse_readme(local_path / "README.md"),
|
58 |
+
# TODO: load test cases and use them to populate examples
|
59 |
+
# examples=[parse_test_cases(test_cases, feature_names, gradio_input_types)],
|
60 |
+
examples=[
|
61 |
+
parse_test_cases(tc, gradio_input_types, gradio_input_types)
|
62 |
+
for tc in test_cases
|
63 |
+
],
|
64 |
)
|
|
|
65 |
iface.launch()
|
66 |
|
67 |
|