vasevooo commited on
Commit
e83b857
1 Parent(s): c099357

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +69 -4
app.py CHANGED
@@ -1,5 +1,70 @@
1
  import streamlit as st
2
-
3
- st.markdown("# NLP Project by Team Name 🎈")
4
-
5
- st.text ('Team members: \n 1. Vasily S. \n 2. Anna F. \n 3. Viktoria K. \n 4. Ivan N. \n 5. Ilvir Kh.')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 {{
16
+ background-image: url("https://catherineasquithgallery.com/uploads/posts/2021-02/1614374202_41-p-fon-tekhnologii-svetlii-53.jpg");
17
+ background-size: 120%;
18
+ 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
57
+
58
+ # st.markdown("<div style='text-align: center; font-size: 35px;'**:gray[> Team members:"]**, unsafe_allow_html=True)
59
+ # st.markdown("<div style='text-align: center; font-size: 28px;'> :gray[Vasily S.]", unsafe_allow_html=True)
60
+ # st.markdown("<div style='text-align: center; font-size: 28px;'> :gray[Anna F.]", unsafe_allow_html=True)
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.]**')
68
+ st.subheader('**:violet[:cat: Viktoria K.]**')
69
+ st.subheader('**:violet[:cat: Ivan N.]**')
70
+ st.subheader('**:violet[:cat: Ilvir Kh.]**')