AMR-KELEG commited on
Commit
e7de010
·
1 Parent(s): 43faa22

Log progress in percentages

Browse files
Files changed (1) hide show
  1. background_inference.py +1 -1
background_inference.py CHANGED
@@ -24,7 +24,7 @@ for i, sentence in enumerate(sentences):
24
  predictions.append(
25
  getattr(eval_utils, inference_function)(model, tokenizer, sentence)
26
  )
27
- print("Inference progress: ", round((i + 1) / len(sentences), 2))
28
 
29
  # Store the predictions in a private dataset
30
  utils.upload_predictions(
 
24
  predictions.append(
25
  getattr(eval_utils, inference_function)(model, tokenizer, sentence)
26
  )
27
+ print("Inference progress: ", round(100 * (i + 1) / len(sentences), 1), "%")
28
 
29
  # Store the predictions in a private dataset
30
  utils.upload_predictions(