Skip to content

Commit d7bc592

Browse files
committed
revert and wait outside
1 parent 0a21649 commit d7bc592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cleanlab_codex/validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ def validate(
141141
"""
142142
expert_task = asyncio.create_task(self.remediate_async(query))
143143
scores, is_bad_response = self.detect(query, context, response, prompt, form_prompt)
144+
expert_answer, maybe_entry = asyncio.run(expert_task)
144145
if is_bad_response:
145-
expert_answer, maybe_entry = asyncio.run(expert_task)
146146
if expert_answer == None:
147147
self._project.add_entries([maybe_entry])
148148
else:

0 commit comments

Comments
 (0)