Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +25 -12
src/streamlit_app.py
CHANGED
@@ -13,46 +13,53 @@ from typing import Optional
|
|
13 |
from gliner import GLiNER
|
14 |
from comet_ml import Experiment
|
15 |
|
|
|
16 |
st.markdown(
|
17 |
"""
|
18 |
<style>
|
19 |
/* Main app background and text color */
|
20 |
.stApp {
|
21 |
-
background-color: #
|
22 |
-
color: #000000; /* Black for
|
23 |
}
|
|
|
24 |
/* Sidebar background color */
|
25 |
.css-1d36184 {
|
26 |
-
background-color: #
|
27 |
-
secondary-background-color: #
|
28 |
}
|
29 |
-
|
30 |
/* Expander background color */
|
31 |
.streamlit-expanderContent {
|
32 |
-
background-color: #
|
33 |
}
|
|
|
34 |
/* Expander header background color */
|
35 |
.streamlit-expanderHeader {
|
36 |
-
background-color: #
|
37 |
}
|
|
|
38 |
/* Text Area background and text color */
|
39 |
.stTextArea textarea {
|
40 |
-
background-color: #
|
41 |
color: #000000; /* Black for text */
|
42 |
}
|
|
|
43 |
/* Button background and text color */
|
44 |
.stButton > button {
|
45 |
-
background-color: #
|
46 |
color: #000000;
|
47 |
}
|
|
|
48 |
/* Warning box background and text color */
|
49 |
.stAlert.st-warning {
|
50 |
-
background-color: #
|
51 |
color: #000000;
|
52 |
}
|
|
|
53 |
/* Success box background and text color */
|
54 |
.stAlert.st-success {
|
55 |
-
background-color: #
|
56 |
color: #000000;
|
57 |
}
|
58 |
</style>
|
@@ -60,9 +67,15 @@ st.markdown(
|
|
60 |
unsafe_allow_html=True
|
61 |
)
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
# --- Page Configuration and UI Elements ---
|
64 |
st.set_page_config(layout="wide", page_title="Named Entity Recognition App")
|
65 |
-
st.subheader("Business
|
66 |
st.link_button("by nlpblogs", "https://nlpblogs.com", type="tertiary")
|
67 |
expander = st.expander("**Important notes**")
|
68 |
expander.write("""**Named Entities:** This HR.ai predicts thirty-six (36) labels: "Email", "Phone_number", "Street_address", "City", "Country", "Date_of_birth", "Marital_status", "Person", "Full_time", "Part_time", "Contract", "Terminated", "Retired", "Job_title", "Date", "Organization", "Role", "Performance_score", "Leave_of_absence", "Retirement_plan", "Bonus", "Stock_options", "Health_insurance", "Pay_rate", "Annual_salary", "Tax", "Deductions", "Interview_type", "Applicant", "Referral", "Job_board", "Recruiter", "Offer_letter", "Agreement", "Certification", "Skill"
|
|
|
13 |
from gliner import GLiNER
|
14 |
from comet_ml import Experiment
|
15 |
|
16 |
+
|
17 |
st.markdown(
|
18 |
"""
|
19 |
<style>
|
20 |
/* Main app background and text color */
|
21 |
.stApp {
|
22 |
+
background-color: #FFF8F0; /* A very light, creamy orange */
|
23 |
+
color: #000000; /* Black for text */
|
24 |
}
|
25 |
+
|
26 |
/* Sidebar background color */
|
27 |
.css-1d36184 {
|
28 |
+
background-color: #FFC080; /* A soft orange for the sidebar */
|
29 |
+
secondary-background-color: #FFC080;
|
30 |
}
|
31 |
+
|
32 |
/* Expander background color */
|
33 |
.streamlit-expanderContent {
|
34 |
+
background-color: #FFF8F0;
|
35 |
}
|
36 |
+
|
37 |
/* Expander header background color */
|
38 |
.streamlit-expanderHeader {
|
39 |
+
background-color: #FFF8F0;
|
40 |
}
|
41 |
+
|
42 |
/* Text Area background and text color */
|
43 |
.stTextArea textarea {
|
44 |
+
background-color: #FFDDAA; /* A light, soft orange */
|
45 |
color: #000000; /* Black for text */
|
46 |
}
|
47 |
+
|
48 |
/* Button background and text color */
|
49 |
.stButton > button {
|
50 |
+
background-color: #FFDDAA;
|
51 |
color: #000000;
|
52 |
}
|
53 |
+
|
54 |
/* Warning box background and text color */
|
55 |
.stAlert.st-warning {
|
56 |
+
background-color: #FFBB88; /* A slightly darker orange for warnings */
|
57 |
color: #000000;
|
58 |
}
|
59 |
+
|
60 |
/* Success box background and text color */
|
61 |
.stAlert.st-success {
|
62 |
+
background-color: #FFBB88; /* A slightly darker orange for success boxes */
|
63 |
color: #000000;
|
64 |
}
|
65 |
</style>
|
|
|
67 |
unsafe_allow_html=True
|
68 |
)
|
69 |
|
70 |
+
|
71 |
+
|
72 |
+
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
# --- Page Configuration and UI Elements ---
|
77 |
st.set_page_config(layout="wide", page_title="Named Entity Recognition App")
|
78 |
+
st.subheader("Business Core", divider="green")
|
79 |
st.link_button("by nlpblogs", "https://nlpblogs.com", type="tertiary")
|
80 |
expander = st.expander("**Important notes**")
|
81 |
expander.write("""**Named Entities:** This HR.ai predicts thirty-six (36) labels: "Email", "Phone_number", "Street_address", "City", "Country", "Date_of_birth", "Marital_status", "Person", "Full_time", "Part_time", "Contract", "Terminated", "Retired", "Job_title", "Date", "Organization", "Role", "Performance_score", "Leave_of_absence", "Retirement_plan", "Bonus", "Stock_options", "Health_insurance", "Pay_rate", "Annual_salary", "Tax", "Deductions", "Interview_type", "Applicant", "Referral", "Job_board", "Recruiter", "Offer_letter", "Agreement", "Certification", "Skill"
|