Skip to content

Fix example doc in load function#575

Merged
lhoestq merged 1 commit into
huggingface:mainfrom
alexrs:patch-1
Apr 18, 2024
Merged

Fix example doc in load function#575
lhoestq merged 1 commit into
huggingface:mainfrom
alexrs:patch-1

Conversation

@alexrs

@alexrs alexrs commented Apr 15, 2024

Copy link
Copy Markdown
Contributor

What

The example in the docs for the load function is wrong, and should be

>>> from evaluate import load
>>> accuracy = load("accuracy")

or

>>> import evaluate
>>> accuracy = evaluate.load("accuracy")

Why

Small change, but it was kinda bothering me 😅

@lhoestq lhoestq left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks ^^

@lhoestq
lhoestq merged commit 04c7588 into huggingface:main Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants