Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -36,62 +36,62 @@ def get_rag_model():
|
|
36 |
|
37 |
# Custom CSS for styling
|
38 |
def load_css():
|
39 |
-
st.markdown("""
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
|
96 |
# Streamlit app
|
97 |
def main():
|
|
|
36 |
|
37 |
# Custom CSS for styling
|
38 |
def load_css():
|
39 |
+
st.markdown("""
|
40 |
+
<style>
|
41 |
+
.stApp {
|
42 |
+
background: linear-gradient(135deg, #ff9a8b, #ff6a88); /* Warm sunset gradient */
|
43 |
+
}
|
44 |
+
.stHeader {
|
45 |
+
color: #1a1a2e; /* Dark blue-gray for headers */
|
46 |
+
font-size: 2.5rem;
|
47 |
+
font-weight: bold;
|
48 |
+
}
|
49 |
+
.stForm {
|
50 |
+
background: white;
|
51 |
+
padding: 20px;
|
52 |
+
border-radius: 10px;
|
53 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
54 |
+
}
|
55 |
+
.stButton button {
|
56 |
+
background-color: #6b48ff; /* Rich purple */
|
57 |
+
color: white;
|
58 |
+
border-radius: 5px;
|
59 |
+
padding: 10px 20px;
|
60 |
+
font-size: 1rem;
|
61 |
+
border: none;
|
62 |
+
}
|
63 |
+
.stButton button:hover {
|
64 |
+
background-color: #5439cc; /* Darker purple on hover */
|
65 |
+
}
|
66 |
+
.stMarkdown h3 {
|
67 |
+
color: #1a1a2e; /* Matching dark blue-gray */
|
68 |
+
margin-top: 20px;
|
69 |
+
}
|
70 |
+
.st-emotion-cache-13k62yr {
|
71 |
+
position: absolute;
|
72 |
+
background: white;
|
73 |
+
color: white;
|
74 |
+
inset: 0px;
|
75 |
+
color-scheme: dark;
|
76 |
+
overflow: hidden;
|
77 |
+
}
|
78 |
+
.stExpander {
|
79 |
+
background: white;
|
80 |
+
border-radius: 10px;
|
81 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
82 |
+
}
|
83 |
+
.stDataFrame {
|
84 |
+
border-radius: 10px;
|
85 |
+
}
|
86 |
+
/* Custom color for results */
|
87 |
+
.stMarkdown p, .stMarkdown ul, .stMarkdown ol {
|
88 |
+
color: rgb(26, 26, 46); /* Darker blue-gray for text */
|
89 |
+
}
|
90 |
+
.stMarkdown a {
|
91 |
+
color: #6b48ff; /* Matching purple for links */
|
92 |
+
}
|
93 |
+
</style>
|
94 |
+
""", unsafe_allow_html=True)
|
95 |
|
96 |
# Streamlit app
|
97 |
def main():
|