Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
50e1ed40
Unverified
Commit
50e1ed40
authored
Jul 18, 2023
by
Lintang Sutawika
Committed by
GitHub
Jul 18, 2023
Browse files
Merge pull request #687 from baberabb/big-refactor_output
[Refactor] typo
parents
3cd3921f
9e209949
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.py
main.py
+2
-2
No files found.
main.py
View file @
50e1ed40
...
@@ -115,8 +115,8 @@ def main():
...
@@ -115,8 +115,8 @@ def main():
if
args
.
output_path
:
if
args
.
output_path
:
path
=
Path
(
args
.
output_path
)
path
=
Path
(
args
.
output_path
)
# check if file or 'dir/results.json
l
' exists
# check if file or 'dir/results.json' exists
if
path
.
is_file
()
or
Path
(
args
.
output_path
).
joinpath
(
"results.json
l
"
).
is_file
():
if
path
.
is_file
()
or
Path
(
args
.
output_path
).
joinpath
(
"results.json"
).
is_file
():
eval_logger
.
warning
(
eval_logger
.
warning
(
f
"File already exists at
{
path
}
. Results will be overwritten."
f
"File already exists at
{
path
}
. Results will be overwritten."
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment