Spaces:
Running
Running
Update Layout again
Browse files
app.py
CHANGED
|
@@ -9,34 +9,31 @@ import re
|
|
| 9 |
import logging
|
| 10 |
logging.basicConfig(level=logging.INFO)
|
| 11 |
|
| 12 |
-
|
| 13 |
-
st.set_page_config(layout="wide")
|
| 14 |
-
|
| 15 |
-
# Banner at the top with United Nations blue background and white heading text
|
| 16 |
st.markdown(
|
| 17 |
"""
|
| 18 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
<h1 style="color:white; margin:0;">Montreal AI Decisions (MVP)</h1>
|
| 20 |
</div>
|
| 21 |
""",
|
| 22 |
unsafe_allow_html=True
|
| 23 |
)
|
| 24 |
|
| 25 |
-
# Wrap the rest of the app in a centered container
|
| 26 |
-
with st.container():
|
| 27 |
-
st.markdown(
|
| 28 |
-
"""
|
| 29 |
-
<style>
|
| 30 |
-
.centered-container {
|
| 31 |
-
max-width: 900px;
|
| 32 |
-
margin: auto;
|
| 33 |
-
padding: 2rem 1rem;
|
| 34 |
-
}
|
| 35 |
-
</style>
|
| 36 |
-
<div class="centered-container">
|
| 37 |
-
""",
|
| 38 |
-
unsafe_allow_html=True
|
| 39 |
-
)
|
| 40 |
|
| 41 |
########### Function for getting response #######################
|
| 42 |
def chat_response(query, filter_metadata=None):
|
|
|
|
| 9 |
import logging
|
| 10 |
logging.basicConfig(level=logging.INFO)
|
| 11 |
|
| 12 |
+
# st.set_page_config(layout="wide")
|
|
|
|
|
|
|
|
|
|
| 13 |
st.markdown(
|
| 14 |
"""
|
| 15 |
+
<style>
|
| 16 |
+
.full-width-banner {
|
| 17 |
+
width: 100vw;
|
| 18 |
+
position: relative;
|
| 19 |
+
left: -50vw;
|
| 20 |
+
right: -50vw;
|
| 21 |
+
margin-left: 50%;
|
| 22 |
+
margin-right: 50%;
|
| 23 |
+
background-color: #0071BC; /* UN Blue */
|
| 24 |
+
padding: 15px 0;
|
| 25 |
+
text-align: center;
|
| 26 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
| 27 |
+
z-index: 1000;
|
| 28 |
+
}
|
| 29 |
+
</style>
|
| 30 |
+
<div class="full-width-banner">
|
| 31 |
<h1 style="color:white; margin:0;">Montreal AI Decisions (MVP)</h1>
|
| 32 |
</div>
|
| 33 |
""",
|
| 34 |
unsafe_allow_html=True
|
| 35 |
)
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
########### Function for getting response #######################
|
| 39 |
def chat_response(query, filter_metadata=None):
|