Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Marigold committed Jan 17, 2025
1 parent 079a394 commit 4606e95
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/wizard/app_pages/similar_charts/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,14 +384,11 @@ def add_coviews_to_charts(charts: List[data.Chart], chosen_chart: data.Chart, co

for score_name in ["title", "subtitle", "tags", "share_indicator", "pageviews_score", "coviews_score"]:
key = f"w_{score_name}"
if key not in st.session_state:
st.session_state[key] = scoring.DEFAULT_WEIGHTS[score_name]

url_persist(st.slider)(
f"Weight for {score_name} score",
key=key,
min_value=1e-9,
max_value=1.0,
key=key,
value=scoring.DEFAULT_WEIGHTS[score_name],
)
scoring_model.weights[score_name] = st.session_state[key]
Expand Down

0 comments on commit 4606e95

Please sign in to comment.