vasevooo commited on
Commit
cf2937a
1 Parent(s): 5d53558

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -1,15 +1,15 @@
1
  import streamlit as st
2
  import base64
3
  import plotly.express as px
4
-
5
  df = px.data.iris()
6
-
7
  @st.cache_data
8
  def get_img_as_base64(file):
9
  with open(file, "rb") as f:
10
  data = f.read()
11
  return base64.b64encode(data).decode()
12
-
13
  page_bg_img = f"""
14
  <style>
15
  [data-testid="stAppViewContainer"] > .main {{
@@ -19,38 +19,38 @@ background-position: top left;
19
  background-repeat: no-repeat;
20
  background-attachment: local;
21
  }}
22
-
23
  [data-testid="stHeader"] {{
24
  background: rgba(1,1,1,1);
25
  }}
26
-
27
  [data-testid="stToolbar"] {{
28
  right: 2rem;
29
  }}
30
-
31
  div.css-1n76uvr.esravye0 {{
32
  background-color: rgba(238, 238, 238, 0.5);
33
  border: 10px solid #EEEEEE;
34
  padding: 5% 5% 5% 10%;
35
  border-radius: 5px;
36
  }}
37
-
38
-
39
-
40
  </style>
41
  """
42
  st.markdown(page_bg_img, unsafe_allow_html=True)
43
-
44
  col1, col2, col3 = st.columns([1,8,1])
45
  #col1, col2 = st.columns(2)
46
-
47
  ### Гистограмма total_bill
48
  with col2:
49
  # Веб-приложение с использованием Streamlit
50
  st.title(':blue[NLP project by team BERT]:male-technologist:')
51
  col1, col2, col3 = st.columns([2,5,2])
52
  #col1, col2 = st.columns(2)
53
-
54
  ### Гистограмма total_bill
55
  with col2:
56
  # Веб-приложение с использованием Streamlit
@@ -61,7 +61,7 @@ with col2:
61
  # st.markdown("<div style='text-align: center; font-size: 28px;'> :gray[Viktoria K.]", unsafe_allow_html=True)
62
  # st.markdown("<div style='text-align: center; font-size: 28px;'> :gray[Ivan N.]", unsafe_allow_html=True)
63
  # st.markdown("<div style='text-align: center; font-size: 28px;'> :gray[Ilvir Kh.]", unsafe_allow_html=True)
64
-
65
  st.header('**:grey[Team members:]**')
66
  st.subheader('**:violet[:cat: Vasily S.]**')
67
  st.subheader('**:violet[:cat: Anna F.]**')
 
1
  import streamlit as st
2
  import base64
3
  import plotly.express as px
4
+
5
  df = px.data.iris()
6
+
7
  @st.cache_data
8
  def get_img_as_base64(file):
9
  with open(file, "rb") as f:
10
  data = f.read()
11
  return base64.b64encode(data).decode()
12
+
13
  page_bg_img = f"""
14
  <style>
15
  [data-testid="stAppViewContainer"] > .main {{
 
19
  background-repeat: no-repeat;
20
  background-attachment: local;
21
  }}
22
+
23
  [data-testid="stHeader"] {{
24
  background: rgba(1,1,1,1);
25
  }}
26
+
27
  [data-testid="stToolbar"] {{
28
  right: 2rem;
29
  }}
30
+
31
  div.css-1n76uvr.esravye0 {{
32
  background-color: rgba(238, 238, 238, 0.5);
33
  border: 10px solid #EEEEEE;
34
  padding: 5% 5% 5% 10%;
35
  border-radius: 5px;
36
  }}
37
+
38
+
39
+
40
  </style>
41
  """
42
  st.markdown(page_bg_img, unsafe_allow_html=True)
43
+
44
  col1, col2, col3 = st.columns([1,8,1])
45
  #col1, col2 = st.columns(2)
46
+
47
  ### Гистограмма total_bill
48
  with col2:
49
  # Веб-приложение с использованием Streamlit
50
  st.title(':blue[NLP project by team BERT]:male-technologist:')
51
  col1, col2, col3 = st.columns([2,5,2])
52
  #col1, col2 = st.columns(2)
53
+
54
  ### Гистограмма total_bill
55
  with col2:
56
  # Веб-приложение с использованием Streamlit
 
61
  # st.markdown("<div style='text-align: center; font-size: 28px;'> :gray[Viktoria K.]", unsafe_allow_html=True)
62
  # st.markdown("<div style='text-align: center; font-size: 28px;'> :gray[Ivan N.]", unsafe_allow_html=True)
63
  # st.markdown("<div style='text-align: center; font-size: 28px;'> :gray[Ilvir Kh.]", unsafe_allow_html=True)
64
+
65
  st.header('**:grey[Team members:]**')
66
  st.subheader('**:violet[:cat: Vasily S.]**')
67
  st.subheader('**:violet[:cat: Anna F.]**')