Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ file = st.file_uploader(" ",type=["csv"])
|
|
22 |
if file is not None:
|
23 |
# Read the CSV file into a Pandas DataFrame
|
24 |
df = pd.read_csv(file)
|
25 |
-
st.markdown(f"<h5 style='
|
26 |
|
27 |
# Write the total number of records
|
28 |
st.markdown(
|
@@ -84,7 +84,7 @@ if file is not None:
|
|
84 |
|
85 |
# Create HTML table with no border and centered text
|
86 |
table_html = (df.style
|
87 |
-
.set_properties(**{'text-align': 'left'
|
88 |
.set_table_styles([{'selector': 'th', 'props': [('border', '0px')]},
|
89 |
{'selector': 'td', 'props': [('border', '0px')]}])
|
90 |
.set_table_attributes('style="position: sticky; top: 0;"')
|
|
|
22 |
if file is not None:
|
23 |
# Read the CSV file into a Pandas DataFrame
|
24 |
df = pd.read_csv(file)
|
25 |
+
st.markdown(f"<h5 style='margin-top:40px'>Total reviews: {len(df)-1} </h5>", unsafe_allow_html=True)
|
26 |
|
27 |
# Write the total number of records
|
28 |
st.markdown(
|
|
|
84 |
|
85 |
# Create HTML table with no border and centered text
|
86 |
table_html = (df.style
|
87 |
+
.set_properties(**{'text-align': 'left'})
|
88 |
.set_table_styles([{'selector': 'th', 'props': [('border', '0px')]},
|
89 |
{'selector': 'td', 'props': [('border', '0px')]}])
|
90 |
.set_table_attributes('style="position: sticky; top: 0;"')
|