danieldux commited on
Commit
ceef71a
·
1 Parent(s): 55e8a57

Refactor examples in launch_gradio_widget function

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -55,8 +55,7 @@ def launch_gradio_widget(metric, test_cases):
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
  )
61
 
62
  iface.launch()
 
55
  ),
56
  title=f"Metric: {metric.name}",
57
  article=parse_readme(local_path / "README.md"),
58
+ examples=[parse_gradio_data(tc, gradio_input_types) for tc in test_cases],
 
59
  )
60
 
61
  iface.launch()