Update app.py
Browse files
app.py
CHANGED
|
@@ -99,11 +99,15 @@ def main():
|
|
| 99 |
st.set_option('deprecation.showPyplotGlobalUse', False)
|
| 100 |
st.set_page_config(page_title="Review Sentiment Analysis and Improvement Summarisation Report for Business Product", page_icon="🦜")
|
| 101 |
st.header("Review Sentiment Analysis and Improvement Summarisation Report for Business Product")
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
st.text('️️ ')
|
| 108 |
if uploaded_file is not None:
|
| 109 |
uploaded_file.seek(0)
|
|
|
|
| 99 |
st.set_option('deprecation.showPyplotGlobalUse', False)
|
| 100 |
st.set_page_config(page_title="Review Sentiment Analysis and Improvement Summarisation Report for Business Product", page_icon="🦜")
|
| 101 |
st.header("Review Sentiment Analysis and Improvement Summarisation Report for Business Product")
|
| 102 |
+
try:
|
| 103 |
+
uploaded_file = st.file_uploader("🔶 Upload CSV file for analysis 🔶", type={"csv"})
|
| 104 |
+
if dataset is not None:
|
| 105 |
+
columnname = st.text_input("🔶 Please enter the column name in CSV file you want to analyze 🔶")
|
| 106 |
+
num_data = st.number_input("🔶 Please enter the number of rows you want to process 🔶",step=1)
|
| 107 |
+
input_data = pd.read_csv(uploaded_file)
|
| 108 |
+
st.dataframe(input_data)
|
| 109 |
+
except:
|
| 110 |
+
st.write("Please load a file to continue...")
|
| 111 |
st.text('️️ ')
|
| 112 |
if uploaded_file is not None:
|
| 113 |
uploaded_file.seek(0)
|