Spaces:
Sleeping
Sleeping
remove css elements
Browse files- USMLPhDRecommender.py +0 -8
- frontend/styles.css +0 -44
USMLPhDRecommender.py
CHANGED
|
@@ -4,14 +4,6 @@ from core.recommender import EmbeddingProcessor, Recommender
|
|
| 4 |
|
| 5 |
st.title("U.S. ML PhD Faculty Advisor Recommender")
|
| 6 |
|
| 7 |
-
# Define CSS for light and dark mode toggle
|
| 8 |
-
def load_css(css_file):
|
| 9 |
-
with open(css_file, "r") as f:
|
| 10 |
-
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
|
| 11 |
-
|
| 12 |
-
load_css("frontend/styles.css")
|
| 13 |
-
|
| 14 |
-
|
| 15 |
# Set up
|
| 16 |
embedding_processor = EmbeddingProcessor()
|
| 17 |
recommender = Recommender(embedding_processor)
|
|
|
|
| 4 |
|
| 5 |
st.title("U.S. ML PhD Faculty Advisor Recommender")
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Set up
|
| 8 |
embedding_processor = EmbeddingProcessor()
|
| 9 |
recommender = Recommender(embedding_processor)
|
frontend/styles.css
DELETED
|
@@ -1,44 +0,0 @@
|
|
| 1 |
-
/* White mode CSS */
|
| 2 |
-
|
| 3 |
-
body {
|
| 4 |
-
background-color: #FFFFFF; /* Light background */
|
| 5 |
-
color: #212529; /* Dark text */
|
| 6 |
-
}
|
| 7 |
-
|
| 8 |
-
.stApp {
|
| 9 |
-
background-color: #FFFFFF; /* Light background */
|
| 10 |
-
}
|
| 11 |
-
|
| 12 |
-
h1, h2, h3, h4, h5, h6 {
|
| 13 |
-
color: #212529; /* Dark headings */
|
| 14 |
-
}
|
| 15 |
-
|
| 16 |
-
a {
|
| 17 |
-
color: #007BFF; /* Bootstrap primary link color */
|
| 18 |
-
}
|
| 19 |
-
|
| 20 |
-
.css-18e3th9 {
|
| 21 |
-
background-color: #F8F9FA; /* Light gray for input fields */
|
| 22 |
-
border-color: #CED4DA; /* Gray border for input fields */
|
| 23 |
-
}
|
| 24 |
-
|
| 25 |
-
.dark-mode-btn {
|
| 26 |
-
position: absolute;
|
| 27 |
-
top: 10px;
|
| 28 |
-
right: 10px;
|
| 29 |
-
background-color: transparent;
|
| 30 |
-
border: none;
|
| 31 |
-
font-size: 20px;
|
| 32 |
-
cursor: pointer;
|
| 33 |
-
color: #212529; /* Dark button text */
|
| 34 |
-
}
|
| 35 |
-
|
| 36 |
-
/* Change the text color of the input field */
|
| 37 |
-
input {
|
| 38 |
-
color: #212529; /* Dark input text */
|
| 39 |
-
}
|
| 40 |
-
|
| 41 |
-
/* Change the placeholder text color */
|
| 42 |
-
input::placeholder {
|
| 43 |
-
color: #6C757D; /* Placeholder color */
|
| 44 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|