Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,11 @@ st.set_page_config(page_title="Hotel Reviews Sentiment", page_icon=":hotel:",lay
|
|
16 |
# Add image and heading
|
17 |
st.image("Header.png", use_column_width=True)
|
18 |
|
|
|
|
|
|
|
|
|
|
|
19 |
file = st.file_uploader(" ",type=["csv"])
|
20 |
|
21 |
# Define the app's functionality
|
@@ -80,7 +85,7 @@ if file is not None:
|
|
80 |
df = df[df['Sentiment'] == filter_sentiment]
|
81 |
|
82 |
# Set the max number of rows to display at a time
|
83 |
-
max_rows =
|
84 |
|
85 |
# Create HTML table with no border and centered text
|
86 |
table_html = (df.style
|
|
|
16 |
# Add image and heading
|
17 |
st.image("Header.png", use_column_width=True)
|
18 |
|
19 |
+
st.write("<br>", unsafe_allow_html=True)
|
20 |
+
file_format_link = "https://drive.google.com/file/d/1B6Glpna9kZsakgjpWStfhbxI20EoGsnv/view?usp=sharing"
|
21 |
+
message = f"⚠️ㅤPlease stick to the given layout when uploading the file. You can download the sample file layout from [here]({file_format_link})."
|
22 |
+
st.write(message)
|
23 |
+
|
24 |
file = st.file_uploader(" ",type=["csv"])
|
25 |
|
26 |
# Define the app's functionality
|
|
|
85 |
df = df[df['Sentiment'] == filter_sentiment]
|
86 |
|
87 |
# Set the max number of rows to display at a time
|
88 |
+
max_rows = 10
|
89 |
|
90 |
# Create HTML table with no border and centered text
|
91 |
table_html = (df.style
|