Spaces:
Running
on
T4
Running
on
T4
sidebar fixed
Browse files- app.py +0 -16
- pages/Semantic_Search.py +21 -0
app.py
CHANGED
@@ -33,22 +33,6 @@ st.markdown("""
|
|
33 |
}
|
34 |
font-family: 'Amazon Ember', sans-serif;
|
35 |
}
|
36 |
-
|
37 |
-
[data-testid="stSidebar"] {
|
38 |
-
position: fixed;
|
39 |
-
top: 0;
|
40 |
-
left: 0;
|
41 |
-
height: 100vh;
|
42 |
-
overflow-y: auto;
|
43 |
-
z-index: 100;
|
44 |
-
background-color: #0e1117; /* optional: match your theme */
|
45 |
-
border-right: 1px solid #333; /* optional for separation */
|
46 |
-
}
|
47 |
-
|
48 |
-
/* Adjust the main content so it doesn't go under the fixed sidebar
|
49 |
-
[data-testid="stAppViewContainer"] > .main {
|
50 |
-
margin-left: 16rem; /* adjust width to match sidebar size */
|
51 |
-
}*/
|
52 |
|
53 |
.block-container {
|
54 |
padding-top: 2rem;
|
|
|
33 |
}
|
34 |
font-family: 'Amazon Ember', sans-serif;
|
35 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
.block-container {
|
38 |
padding-top: 2rem;
|
pages/Semantic_Search.py
CHANGED
@@ -49,6 +49,27 @@ st.markdown("""
|
|
49 |
}
|
50 |
</style>
|
51 |
""", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
#ps = PorterStemmer()
|
53 |
|
54 |
st.session_state.REGION = 'us-east-1'
|
|
|
49 |
}
|
50 |
</style>
|
51 |
""", unsafe_allow_html=True)
|
52 |
+
st.markdown("""
|
53 |
+
<style>
|
54 |
+
/* Make the sidebar sticky */
|
55 |
+
[data-testid="stSidebar"] {
|
56 |
+
position: fixed;
|
57 |
+
top: 0;
|
58 |
+
left: 0;
|
59 |
+
height: 100vh;
|
60 |
+
overflow-y: auto;
|
61 |
+
z-index: 100;
|
62 |
+
background-color: #0e1117; /* optional: match your theme */
|
63 |
+
border-right: 1px solid #333; /* optional for separation */
|
64 |
+
}
|
65 |
+
|
66 |
+
/* Adjust the main content so it doesn't go under the fixed sidebar */
|
67 |
+
[data-testid="stAppViewContainer"] > .main {
|
68 |
+
margin-left: 16rem; /* adjust width to match sidebar size */
|
69 |
+
}
|
70 |
+
</style>
|
71 |
+
""", unsafe_allow_html=True)
|
72 |
+
|
73 |
#ps = PorterStemmer()
|
74 |
|
75 |
st.session_state.REGION = 'us-east-1'
|