Spaces:
Runtime error
Runtime error
Update pages/book.py
Browse files- pages/book.py +0 -30
pages/book.py
CHANGED
@@ -9,36 +9,6 @@ import pickle
|
|
9 |
import requests
|
10 |
from io import BytesIO
|
11 |
|
12 |
-
import base64
|
13 |
-
import streamlit as st
|
14 |
-
import plotly.express as px
|
15 |
-
|
16 |
-
page_bg_img = f"""
|
17 |
-
<style>
|
18 |
-
[data-testid="stAppViewContainer"] > .main {{
|
19 |
-
background-image: url("https://i.ibb.co/8dKsZpV/black-and-white-books-piled-stacks.jpg");
|
20 |
-
background-size: 110%;
|
21 |
-
background-position: top left;
|
22 |
-
background-repeat: no-repeat;
|
23 |
-
background-attachment: local;
|
24 |
-
}}
|
25 |
-
[data-testid="stHeader"] {{
|
26 |
-
background: rgba(1,1,1,1);
|
27 |
-
}}
|
28 |
-
[data-testid="stToolbar"] {{
|
29 |
-
right: 2rem;
|
30 |
-
}}
|
31 |
-
div.css-1ih2q7l.e1tzin5v0 {{
|
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 |
-
</style>
|
38 |
-
"""
|
39 |
-
st.markdown(page_bg_img, unsafe_allow_html=True)
|
40 |
-
|
41 |
-
|
42 |
st.title("Книжные рекомендации")
|
43 |
|
44 |
# Загрузка модели и токенизатора
|
|
|
9 |
import requests
|
10 |
from io import BytesIO
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
st.title("Книжные рекомендации")
|
13 |
|
14 |
# Загрузка модели и токенизатора
|