Wendy-Fly commited on
Commit
beee7f3
·
verified ·
1 Parent(s): bf71e19

Upload generate_prompt.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. generate_prompt.py +1 -1
generate_prompt.py CHANGED
@@ -110,7 +110,7 @@ for batch_idx in tqdm(range(begin, end, batch_size)):
110
  generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
111
  )
112
  #print(output_text)
113
- save_[0]['result'] = x
114
  save_data.append(save_)
115
 
116
  if batch_idx % 4 ==0:
 
110
  generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
111
  )
112
  #print(output_text)
113
+ save_[0]['result'] = output_text
114
  save_data.append(save_)
115
 
116
  if batch_idx % 4 ==0: