Mariusz Kossakowski commited on
Commit
1d713ee
·
1 Parent(s): de5e35a

Change st.markdown to st.header

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -4,7 +4,6 @@ from typing import Dict, List
4
  import pandas as pd
5
  import plotly.figure_factory as ff
6
  import plotly.graph_objects as go
7
- import pyperclip
8
  import streamlit as st
9
  from unidecode import unidecode
10
 
@@ -63,13 +62,11 @@ with description:
63
  analyze contracts and understand what they agree upon.
64
  """
65
  st.write(desc)
66
- st.markdown(
67
- "<h1 style='text-align: center; color: black;'>Dataset statistics</h1>",
68
- unsafe_allow_html=True,
69
- )
70
 
71
  with dataset_statistics:
72
- st.header("Number of samples in each data split")
73
  metrics_df = pd.DataFrame.from_dict(
74
  {
75
  "Train": DATA_DICT["train"].shape[0],
@@ -96,7 +93,7 @@ with dataset_statistics:
96
 
97
  # Class distribution in each subset
98
  with class_distribution:
99
- st.header("Class distribution in each subset")
100
  plot_column, table_column = st.columns(2)
101
  with plot_column:
102
  hist = (
 
4
  import pandas as pd
5
  import plotly.figure_factory as ff
6
  import plotly.graph_objects as go
 
7
  import streamlit as st
8
  from unidecode import unidecode
9
 
 
62
  analyze contracts and understand what they agree upon.
63
  """
64
  st.write(desc)
65
+
66
+ st.header("Dataset statistics")
 
 
67
 
68
  with dataset_statistics:
69
+ st.subheader("Number of samples in each data split")
70
  metrics_df = pd.DataFrame.from_dict(
71
  {
72
  "Train": DATA_DICT["train"].shape[0],
 
93
 
94
  # Class distribution in each subset
95
  with class_distribution:
96
+ st.subheader("Class distribution in each subset")
97
  plot_column, table_column = st.columns(2)
98
  with plot_column:
99
  hist = (