Commit 90ba03ac authored by lintangsutawika's avatar lintangsutawika
Browse files

fix doc_to_image

parent 9692aa05
...@@ -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 in config") return None
else: else:
doc_to_image = self.config.doc_to_image doc_to_image = self.config.doc_to_image
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment