Spaces:
Running
Running
Update README.md
Browse files
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 |
-
|
|
|
|
| 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
|