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
90ba03ac
Commit
90ba03ac
authored
Jul 10, 2024
by
lintangsutawika
Browse files
fix doc_to_image
parent
9692aa05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/api/task.py
lm_eval/api/task.py
+1
-1
No files found.
lm_eval/api/task.py
View file @
90ba03ac
...
@@ -1280,7 +1280,7 @@ class ConfigurableTask(Task):
...
@@ -1280,7 +1280,7 @@ class ConfigurableTask(Task):
def
doc_to_image
(
self
,
doc
:
Any
)
->
Union
[
int
,
str
,
list
]:
def
doc_to_image
(
self
,
doc
:
Any
)
->
Union
[
int
,
str
,
list
]:
if
self
.
config
.
doc_to_image
is
None
:
if
self
.
config
.
doc_to_image
is
None
:
eval_logger
.
error
(
"doc_to_image was called but not set i
n
c
on
fig"
)
retur
n
N
on
e
else
:
else
:
doc_to_image
=
self
.
config
.
doc_to_image
doc_to_image
=
self
.
config
.
doc_to_image
...
...
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