Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 16, 2025
1 parent 4659611 commit 1a2b2e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def run(model_name, input_obj, dest_file, from_ckpt, device="cpu"):
res = model.predict(text)

res_df = pd.DataFrame(
res, index=[text] if isinstance(text, str) else text # pyright: ignore[reportArgumentType]
res,
index=[text] if isinstance(text, str) else text, # pyright: ignore[reportArgumentType]
).round(5)
print(res_df)
if dest_file is not None:
Expand Down

0 comments on commit 1a2b2e9

Please sign in to comment.