Spaces:
Build error
Build error
Valeriy Sinyukov commited on
Commit ·
ce32a21
1
Parent(s): c710b24
Group same categories into one
Browse filesFiles changed (2)
- app.py-1
- results.py+2-1
20 unmodified lines2122232425262720 unmodified linesmodel = class_models.get_model(name)return modellang = st.pills(label=langs_str, options=langs, default=en)st.title(page_title[lang])model_name = st.selectbox(20 unmodified lines21222324252620 unmodified linesmodel = class_models.get_model(name)return modellang = st.pills(label=langs_str, options=langs, default=en)st.title(page_title[lang])model_name = st.selectbox(
118 unmodified lines119120121122123124125126127118 unmodified linesdef process_results(results, lang):results = pd.DataFrame(results)results = results.sort_values(by=[certainty_init],ascending=False)results = filter_results(results)results = process_categories(results, lang)results = process_certainities(results)results = process_keys(results, lang)return results118 unmodified lines119120121122123124125126127128118 unmodified linesdef process_results(results, lang):results = pd.DataFrame(results)results = process_categories(results, lang)results = results.groupby(by=category_init, as_index=False).sum()results = results.sort_values(by=[certainty_init],ascending=False)results = filter_results(results)results = process_certainities(results)results = process_keys(results, lang)return results
app.py-1
results.py+2-1