Skip to content
Snippets Groups Projects
Commit 2c5ddaec authored by Hsien-Chin Lin's avatar Hsien-Chin Lin
Browse files

wip

parent 5df59abf
No related branches found
No related tags found
No related merge requests found
......@@ -92,9 +92,7 @@ def generate_result(model_checkpoint, data, stop=-1):
do_sample=False)
output = tokenizer.batch_decode(
output, skip_special_tokens=True)[0]
if len(output) > 1:
print(output)
output = "illegal"
if "satisfaction score" in input_text:
output = tri_convert(output)
results.append({"input_text": input_text,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment