-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
48 lines (43 loc) · 1.39 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import streamlit as st
import base64
## STREAMLIT CONFIGURATION
## --------------------------------------------------------------------------------##
st.set_page_config(
page_title="Delhi Metro Accessibility", page_icon="🚇", layout="wide"
)
st.markdown(
"""
<style>
.ezrtsby2 {
height: 0px;
}
.ea3mdgi5 {
padding-bottom: 1rem;
padding-left: 1rem;
padding-right: 1rem;
}
h1{
padding: 2px;
text-align: center;
}
.st-emotion-cache-y4bq5x {
display: block;
}
.exotz4b0 {
padding: 2px;
text-align: center;
display: block;
}
#root > div:nth-child(1) > div.withScreencast > div > div > div > section > div.stAppViewBlockContainer.block-container.st-emotion-cache-1jicfl2.ea3mdgi5 {
padding: 1rem;
}
</style>
""",
unsafe_allow_html=True,
)
# Read the HTML file
with open(r"Images/Delhi Accessibility.html", "r") as file:
html_string = file.read()
st.title("Delhi Metro Accessibility")
st.text("Accessibility to the nearest metro station in Delhi NCR")
st.components.v1.html(html_string, height=600, scrolling=False)