Update app.py
Browse files99 unmodified lines10010110210310410510610710810911011111211311411511619 unmodified lines13613713813914014199 unmodified linesst.set_page_config(page_title="Review Sentiment Analysis and Improvement Summarisation Report for Business Product", page_icon="🦜")st.header("Review Sentiment Analysis and Improvement Summarisation Report for Business Product")try:uploaded_file = st.file_uploader("🔶 Upload CSV file for analysis 🔶", type={"csv"})if dataset is not None:columnname = st.text_input("🔶 Please enter the column name in CSV file you want to analyze 🔶")num_data = st.number_input("🔶 Please enter the number of rows you want to process 🔶",step=1)input_data = pd.read_csv(uploaded_file)st.dataframe(input_data)except:st.write("Please load a file to continue...")st.text('️️ ')if uploaded_file is not None:uploaded_file.seek(0)#stage 1:process datast.text('🔶 Processing Data 🔶')processed_data = process_data(input_data ,columnname, int(num_data))19 unmodified linessummarized_text = summarization(top10_negative_str)st.write(summarized_text)st.text('️️🟢 Summarization Finished 🟢')if __name__ == "__main__":main()99 unmodified lines10010110210310410510610710810911011111219 unmodified lines13213313413513613713813999 unmodified linesst.set_page_config(page_title="Review Sentiment Analysis and Improvement Summarisation Report for Business Product", page_icon="🦜")st.header("Review Sentiment Analysis and Improvement Summarisation Report for Business Product")try:uploaded_file = st.file_uploader("🔶 Upload CSV file for analysis 🔶", type={"csv"})if uploaded_file is not None:columnname = st.text_input("🔶 Please enter the column name in CSV file you want to analyze 🔶")num_data = st.number_input("🔶 Please enter the number of rows you want to process 🔶",step=1)input_data = pd.read_csv(uploaded_file)st.dataframe(input_data)st.text('️️ ')#stage 1:process datast.text('🔶 Processing Data 🔶')processed_data = process_data(input_data ,columnname, int(num_data))19 unmodified linessummarized_text = summarization(top10_negative_str)st.write(summarized_text)st.text('️️🟢 Summarization Finished 🟢')except:st.write("Please load a file to continue...")if __name__ == "__main__":main()
app.py+10-12