CoolFace
Apppublic

igormintz/classification_report

sourceHugging Facemitupdated 4y agoView on Hugging Face
0likes
app.py24 linesDownload Raw Back to root
1import pandas as pd2import streamlit as st3 4import performance5 6PAGES = {"Performance": performance}7 8 9def main():10    st.set_page_config(layout="wide")11    st.title("Automatic classification performance report")12    uploaded_file = st.file_uploader("upload a csv file", type="csv")13    st.text('csv file must contain "y_true" and "y_score" columns')14    if uploaded_file is not None:15        df = pd.read_csv(uploaded_file)16        performance.show_performance(df)17    use_example = st.checkbox("use example")18    if use_example:19        df = pd.read_csv("example.csv")20        performance.show_performance(df)21 22if __name__ == "__main__":23    main()24