vvv-knyazeva commited on
Commit
0f51e13
1 Parent(s): 4c989e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +74 -2
app.py CHANGED
@@ -1,5 +1,77 @@
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 streamlit as st
3
+ # with open('style.css') as f:
4
+ # st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)
5
+
6
+ import base64
7
+ import streamlit as st
8
+ import plotly.express as px
9
+
10
+ df = px.data.iris()
11
+
12
+ @st.cache_data
13
+ def get_img_as_base64(file):
14
+ with open(file, "rb") as f:
15
+ data = f.read()
16
+ return base64.b64encode(data).decode()
17
+
18
+ page_bg_img = f"""
19
+ <style>
20
+ [data-testid="stAppViewContainer"] > .main {{
21
+ background-image: url("https://phonoteka.org/uploads/posts/2022-02/1643931520_73-phonoteka-org-p-fon-tekhnologii-svetlii-77.jpg");
22
+ background-size: 130%;
23
+ background-position: top left;
24
+ background-repeat: no-repeat;
25
+ background-attachment: local;
26
+ }}
27
+
28
+ [data-testid="stSidebar"] > div:first-child {{
29
+ background-image: url("https://i.ibb.co/n75r0q1/angryimg.png");
30
+ background-position: center;
31
+ background-repeat: no-repeat;
32
+ background-attachment: fixed;
33
+ }}
34
+
35
+ [data-testid="stHeader"] {{
36
+ background: rgba(1,1,1,1);
37
+ }}
38
+
39
+ [data-testid="stToolbar"] {{
40
+ right: 2rem;
41
+ }}
42
+
43
+ div.css-1n76uvr.esravye0 {{
44
+ background-color: rgba(238, 238, 238, 0.5);
45
+ border: 10px solid #EEEEEE;
46
+ padding: 5% 5% 5% 10%;
47
+ border-radius: 5px;
48
+ }}
49
+
50
+
51
+
52
+ </style>
53
+ """
54
+ st.markdown(page_bg_img, unsafe_allow_html=True)
55
+
56
+ col1, col2, col3 = st.columns([1,8,1])
57
+ #col1, col2 = st.columns(2)
58
 
59
+ ### Гистограмма total_bill
60
+ with col2:
61
+ # Веб-приложение с использованием Streamlit
62
+ st.title('NLP Project by Team BERT 🎈')
63
+ col1, col2, col3 = st.columns([2,5,2])
64
+ #col1, col2 = st.columns(2)
65
 
66
+ ### Гистограмма total_bill
67
+ with col2:
68
+ # Веб-приложение с использованием Streamlit
69
+
70
+ st.markdown("<div style='text-align: center; font-size: 30px;'>Team members:", unsafe_allow_html=True)
71
+ st.markdown("<div style='text-align: center; font-size: 25px;'>1. Vasily S.", unsafe_allow_html=True)
72
+ st.markdown("<div style='text-align: center; font-size: 25px;'>2. Anna F.", unsafe_allow_html=True)
73
+ st.markdown("<div style='text-align: center; font-size: 25px;'>3. Viktoria K.", unsafe_allow_html=True)
74
+ st.markdown("<div style='text-align: center; font-size: 25px;'>4. Ivan N.", unsafe_allow_html=True)
75
+ st.markdown("<div style='text-align: center; font-size: 25px;'>5. Ilvir Kh.", unsafe_allow_html=True)
76
+ st.markdown("<div style='text-align: center; font-size: 25px;'> ", unsafe_allow_html=True)
77
+ st.markdown("<div style='text-align: center; font-size: 25px;'> ", unsafe_allow_html=True)