Black preview (#17217)
* Black preview * Fixup too! * Fix check copies * Use the same version as the CI * Bump black
This commit is contained in:
@@ -112,7 +112,10 @@ class HumanEvalArguments:
|
||||
device_int: Optional[int] = field(
|
||||
default=-1,
|
||||
metadata={
|
||||
"help": "Determine which device to run the `text-generation` Pipeline on. -1 is CPU and any zero or positive number corresponds to which GPU device id to run on."
|
||||
"help": (
|
||||
"Determine which device to run the `text-generation` Pipeline on. -1 is CPU and any zero or positive"
|
||||
" number corresponds to which GPU device id to run on."
|
||||
)
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
@@ -186,7 +186,8 @@ def main():
|
||||
_ = code_eval_metric.compute(references=[""], predictions=[[""]])
|
||||
except ValueError as exception:
|
||||
print(
|
||||
'Code evaluation not enabled. Read the warning below carefully and then use `--HF_ALLOW_CODE_EVAL="1"` flag to enable code evaluation.'
|
||||
'Code evaluation not enabled. Read the warning below carefully and then use `--HF_ALLOW_CODE_EVAL="1"`'
|
||||
" flag to enable code evaluation."
|
||||
)
|
||||
raise exception
|
||||
|
||||
|
||||
Reference in New Issue
Block a user