Victoria Oberascher commited on
Commit
f64a251
·
1 Parent(s): 6c486f7

update app

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -41,6 +41,8 @@ def launch_gradio_widget(metric):
41
  local_path = Path(sys.path[0])
42
 
43
  def compute(data):
 
 
44
  return metric.compute(
45
  ) ##**parse_gradio_data(data, gradio_input_types)
46
 
@@ -53,11 +55,10 @@ def launch_gradio_widget(metric):
53
  outputs=gr.outputs.Textbox(label=metric.name),
54
  description=
55
  (metric.info.description +
56
- "\nIf this is a text-based metric, make sure to wrap you input in double quotes."
57
- " Alternatively you can use a JSON-formatted list as input."),
58
  title=f"Metric: {metric.name}",
59
  article=parse_readme(local_path / "README.md"),
60
- # TODO: load test cases and use them to populate examples
61
  # examples=[parse_test_cases(test_cases, feature_names, gradio_input_types)]
62
  )
63
 
 
41
  local_path = Path(sys.path[0])
42
 
43
  def compute(data):
44
+ print(data)
45
+
46
  return metric.compute(
47
  ) ##**parse_gradio_data(data, gradio_input_types)
48
 
 
55
  outputs=gr.outputs.Textbox(label=metric.name),
56
  description=
57
  (metric.info.description +
58
+ "\nPass the predictions and the groud truth in the format specified below."
59
+ ),
60
  title=f"Metric: {metric.name}",
61
  article=parse_readme(local_path / "README.md"),
 
62
  # examples=[parse_test_cases(test_cases, feature_names, gradio_input_types)]
63
  )
64