Update app.py
Browse files
app.py
CHANGED
@@ -3,25 +3,24 @@ import torch
|
|
3 |
import torch.nn.functional as F
|
4 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
5 |
|
6 |
-
#
|
7 |
st.markdown("""
|
8 |
<style>
|
|
|
9 |
#MainMenu {visibility: hidden;}
|
10 |
footer {visibility: hidden;}
|
11 |
header {visibility: hidden;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
.block-container {
|
13 |
padding-top: 1rem;
|
14 |
}
|
15 |
-
.st-emotion-cache-16idsys {
|
16 |
-
display: flex;
|
17 |
-
justify-content: space-between;
|
18 |
-
align-items: center;
|
19 |
-
}
|
20 |
-
.logo-container {
|
21 |
-
position: absolute;
|
22 |
-
top: 10px;
|
23 |
-
right: 10px;
|
24 |
-
}
|
25 |
</style>
|
26 |
""", unsafe_allow_html=True)
|
27 |
|
@@ -39,9 +38,9 @@ model, tokenizer = load_model_and_tokenizer()
|
|
39 |
# Page layout with clickable logo
|
40 |
st.markdown("""
|
41 |
<div style="display: flex; justify-content: space-between; align-items: center;">
|
42 |
-
<
|
43 |
<a href="https://dejan.ai" target="_blank">
|
44 |
-
<img src="https://huggingface.co/spaces/dejanseo/bulgarian-search-query-intent-classifier/resolve/main/dejan-300x103.png" width="
|
45 |
</a>
|
46 |
</div>
|
47 |
""", unsafe_allow_html=True)
|
|
|
3 |
import torch.nn.functional as F
|
4 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
5 |
|
6 |
+
# Force light mode with white background and black text
|
7 |
st.markdown("""
|
8 |
<style>
|
9 |
+
/* Hide Streamlit menu and footer */
|
10 |
#MainMenu {visibility: hidden;}
|
11 |
footer {visibility: hidden;}
|
12 |
header {visibility: hidden;}
|
13 |
+
|
14 |
+
/* Force white background */
|
15 |
+
body, .stApp {
|
16 |
+
background-color: #ffffff !important;
|
17 |
+
color: #000000 !important;
|
18 |
+
}
|
19 |
+
|
20 |
+
/* Center logo in the top right */
|
21 |
.block-container {
|
22 |
padding-top: 1rem;
|
23 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
</style>
|
25 |
""", unsafe_allow_html=True)
|
26 |
|
|
|
38 |
# Page layout with clickable logo
|
39 |
st.markdown("""
|
40 |
<div style="display: flex; justify-content: space-between; align-items: center;">
|
41 |
+
<h3>Класификация на намерения за търсене</h3>
|
42 |
<a href="https://dejan.ai" target="_blank">
|
43 |
+
<img src="https://huggingface.co/spaces/dejanseo/bulgarian-search-query-intent-classifier/resolve/main/dejan-300x103.png" width="150">
|
44 |
</a>
|
45 |
</div>
|
46 |
""", unsafe_allow_html=True)
|