Log progress in percentages
Browse files- 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),
|
| 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(
|