HugoLaurencon HF staff commited on
Commit
0319ee2
1 Parent(s): da13b29
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -310,7 +310,7 @@ class Visualization:
310
  new_flagged_words,
311
  )
312
  cutoff_def = "If the flagged words ratio of a document is higher than this number, the document is removed."
313
- max_fwr = np.max(self.docs["flagged_words_ratio"])
314
  cutoff_flagged_words_ratio = st.slider(
315
  cutoff_def, 0.0, max_fwr, max_fwr, step=0.001
316
  )
 
310
  new_flagged_words,
311
  )
312
  cutoff_def = "If the flagged words ratio of a document is higher than this number, the document is removed."
313
+ max_fwr = float(np.max(self.docs["flagged_words_ratio"]))
314
  cutoff_flagged_words_ratio = st.slider(
315
  cutoff_def, 0.0, max_fwr, max_fwr, step=0.001
316
  )