Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix duplicate Streamlit keys in classification panel#57

Merged
nicooxxx merged 2 commits into
feature/benchmarkingclimateandtech/report-analyst:feature/benchmarkingfrom
fix/duplicate-streamlit-keysclimateandtech/report-analyst:fix/duplicate-streamlit-keysCopy head branch name to clipboard
Jul 20, 2026
Merged

Fix duplicate Streamlit keys in classification panel#57
nicooxxx merged 2 commits into
feature/benchmarkingclimateandtech/report-analyst:feature/benchmarkingfrom
fix/duplicate-streamlit-keysclimateandtech/report-analyst:fix/duplicate-streamlit-keysCopy head branch name to clipboard

Conversation

@nicooxxx

Copy link
Copy Markdown
Collaborator

Duplicate Keys error in Streamlit

  • Added a key_prefix to the _render_classification_calibration_panel() function
  • applied the prefix to all keys
  • fixed the Streamlit Duplicate Key Error
  • Evaluation and Result Tab are working correctly

Comment thread report_analyst/ui/benchmarking.py Outdated

@suung suung left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loogs good, tests could be improved

options=label_candidates,
index=default_label_index,
key="calibration_label_select",
key=f"{key_prefix}calibration_label_select",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicooxxx Looks good, is there a test that could secure this?

@nicooxxx
nicooxxx merged commit e33e7b3 into feature/benchmarking Jul 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.