loubnabnl HF staff commited on
Commit
923c83a
1 Parent(s): d040531

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -22,10 +22,12 @@ This metric is used to evaluate code generation on the [APPS benchmark](https://
22
 
23
  ## How to Use
24
  You can load the metric and use it with the following commands:
25
- ```
 
26
  from evaluate import load
27
  apps_metric = load('codeparrot/apps_metric')
28
- results = apps_metric.compute(predictions=generations)
 
29
  ```
30
 
31
  ### Inputs
 
22
 
23
  ## How to Use
24
  You can load the metric and use it with the following commands:
25
+
26
+ ```python
27
  from evaluate import load
28
  apps_metric = load('codeparrot/apps_metric')
29
+ # to evaluate generations made for all levels for example
30
+ results = apps_metric.compute(predictions=generations, level="all")
31
  ```
32
 
33
  ### Inputs