67Ayush87 commited on
Commit
c4a75a2
·
verified ·
1 Parent(s): b624537

Update pages/machine_learning.py

Browse files
Files changed (1) hide show
  1. pages/machine_learning.py +42 -1
pages/machine_learning.py CHANGED
@@ -10,9 +10,50 @@ os.environ['HF_TOKEN'] = hf
10
 
11
  # --- Page Configuration ---
12
  st.set_page_config(page_title="ML Mentor Chat", layout="centered")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  st.title("🤖 Machine Learning Mentor Chat")
14
 
15
- # --- Sidebar: Experience Level ---
16
  st.sidebar.title("Mentor Preferences")
17
  experience_label = st.sidebar.selectbox(
18
  "Select your experience level:", ["Beginner", "Intermediate", "Experienced"]
 
10
 
11
  # --- Page Configuration ---
12
  st.set_page_config(page_title="ML Mentor Chat", layout="centered")
13
+
14
+ # --- Inject Home Page CSS Styling ---
15
+ st.markdown("""
16
+ <style>
17
+ .main {
18
+ background: linear-gradient(135deg, #430089 0%, #82ffa1 100%);
19
+ padding: 2rem;
20
+ font-family: 'Segoe UI', sans-serif;
21
+ }
22
+ .stButton>button {
23
+ background: #ffffff10;
24
+ border: 2px solid #ffffff50;
25
+ color: white;
26
+ font-size: 18px;
27
+ font-weight: 600;
28
+ padding: 0.8em 1.2em;
29
+ border-radius: 12px;
30
+ width: 100%;
31
+ transition: 0.3s ease;
32
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
33
+ }
34
+ .stButton>button:hover {
35
+ background: #ffffff30;
36
+ border-color: #fff;
37
+ color: #ffffff;
38
+ }
39
+ h1, h3, p, label {
40
+ color: #ffffff;
41
+ text-align: center;
42
+ }
43
+ hr {
44
+ border: 1px solid #ffffff50;
45
+ margin: 2em 0;
46
+ }
47
+ .css-1aumxhk {
48
+ color: white; /* Streamlit input text color */
49
+ }
50
+ </style>
51
+ """, unsafe_allow_html=True)
52
+
53
+ # --- Page Title ---
54
  st.title("🤖 Machine Learning Mentor Chat")
55
 
56
+ # --- Sidebar: Experience Level with same style ---
57
  st.sidebar.title("Mentor Preferences")
58
  experience_label = st.sidebar.selectbox(
59
  "Select your experience level:", ["Beginner", "Intermediate", "Experienced"]