Uvini commited on
Commit
e4ee411
·
1 Parent(s): 76b9b81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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='font-family: sans-serif;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,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','font-size': '14px'})
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;"')