-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_rosa.py
42 lines (34 loc) · 1016 Bytes
/
app_rosa.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
import streamlit as st
from streamlit_folium import folium_static
import folium
def main():
text="""
# Aplicación de Machine Learning semiautomática (hands on)
## Esta aplicación ayuda hacer un análisis de datos rápido
>
"""
st.markdown(text)
# center on UFA-ESPE
m = folium.Map(location=[-0.3134717, -78.4448139], zoom_start=16)
# add marker for UFA-ESPE
tooltip = "UFA-ESPE"
# i can use fot awesome icons in the icon
folium.Marker(
[-0.3134717, -78.4448139],
popup='<b>UFA</b>-ESPE',
tooltip=tooltip,
icon=folium.Icon(prefix='fa',icon='fa-exclamation-triangle',color='red')
).add_to(m)
# Circle marker
folium.CircleMarker(
location=[-0.3134717, -78.4448139],
radius=60,
popup="Circulo",
color="#428bca",
fill=True,
fillColor="#428bca"
).add_to(m)
# call to render Folium map in Streamlit
folium_static(m)
if __name__ == '__main__':
main()