Ilvir commited on
Commit
fdc1e16
·
1 Parent(s): 8188c2f

Update app.py

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