Skip to content

Commit

Permalink
fix(pills): Fixed bug with trace view initialization when no feedback…
Browse files Browse the repository at this point in the history
… functions exist (#1108)



---------

Co-authored-by: Josh Reini <[email protected]>
  • Loading branch information
walnutdust and joshreini1 authored Apr 30, 2024
1 parent 96d6765 commit d4d7973
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions trulens_eval/trulens_eval/pages/Evaluations.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,17 @@ def get_icon(feedback_name):
)
)

selected_fcol = pills(
"Feedback functions (click on a pill to learn more)",
feedback_with_valid_results,
index=None,
format_func=lambda fcol: f"{fcol} {row[fcol]:.4f}",
icons=icons
)
selected_fcol = None
if len(feedback_with_valid_results) > 0:
selected_fcol = pills(
"Feedback functions (click on a pill to learn more)",
feedback_with_valid_results,
index=None,
format_func=lambda fcol: f"{fcol} {row[fcol]:.4f}",
icons=icons
)
else:
st.write("No feedback functions found.")

def display_feedback_call(call, feedback_name):

Expand Down

0 comments on commit d4d7973

Please sign in to comment.