Skip to content

Commit

Permalink
fix key errors
Browse files Browse the repository at this point in the history
  • Loading branch information
laurasootes committed Oct 21, 2024
1 parent a6d1dce commit c580c1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dianna/dashboard/_models_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def _run_rise_text(_model, text, **kwargs):

@st.cache_data
def _run_lime_text(_model, text, **kwargs):
relevances = explain_text(_model, text, tokenizer, method='LIME', **kwargs)
relevances = explain_text(_model, text, tokenizer, method='LIME',
**kwargs)
return relevances


Expand Down
2 changes: 1 addition & 1 deletion dianna/dashboard/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _get_params(method: str, key):
else:
return {
'random_state': st.number_input('Random state', value=2, key=f'{key}_{method}_rs'),
'num_features': 999,
'num_features': st.number_input('Number of features', 999, key=f'{key}_{method}_rf'),
'num_samples': st.number_input('Number of samples', value=2000, key=f'{key}_{method}_ns')
}

Expand Down

0 comments on commit c580c1a

Please sign in to comment.