"src/include/threadwise_2d_tensor_op.hip.hpp" did not exist on "fee92fb636a7f1a6144a5358f22985502529160b"
Commit 1701c4e2 authored by lintangsutawika's avatar lintangsutawika
Browse files

add warning log if prompt returns empty string

parent 722b8974
......@@ -766,6 +766,7 @@ class ConfigurableTask(Task):
return applied_prompt[0]
else:
eval_logger.warning("Applied prompt returns empty string")
return applied_prompt[0]
else:
print(type(doc_to_text))
raise TypeError
......@@ -800,6 +801,7 @@ class ConfigurableTask(Task):
return applied_prompt[1]
else:
eval_logger.warning("Applied prompt returns empty string")
return applied_prompt[0]
else:
raise TypeError
......
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