Commit 722b8974 authored by lintangsutawika's avatar lintangsutawika
Browse files

add warning log if prompt returns empty string

parent bc951ac1
......@@ -795,7 +795,7 @@ class ConfigurableTask(Task):
return doc_to_target(doc)
# Used when applying a Promptsource template
elif hasattr(doc_to_target, "apply"):
applied_prompt = doc_to_text.apply(doc)
applied_prompt = doc_to_target.apply(doc)
if len(applied_prompt) == 2:
return applied_prompt[1]
else:
......
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