Skip to content

Commit

Permalink
add missing pprint import (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshreini1 authored Apr 4, 2024
1 parent a9944b8 commit 29f1efb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trulens_eval/trulens_eval/pages/Evaluations.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from trulens_eval.ux.components import render_selector_markdown
from trulens_eval.ux.components import write_or_json
from trulens_eval.ux.styles import cellstyle_jscode
import pprint

st.runtime.legacy_caching.clear_cache()

Expand Down Expand Up @@ -384,7 +385,7 @@ def highlight(s):
args = c['args']
for k, v in args.items():
if not isinstance(v, str):
args[k] = pp.pformat(v)
args[k] = pprint.pformat(v)

df = pd.DataFrame.from_records(
c['args'] for c in call
Expand Down

0 comments on commit 29f1efb

Please sign in to comment.