Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
bb85b9a
1
Parent(s):
f9b371f
Update app.py
Browse files
app.py
CHANGED
@@ -98,6 +98,8 @@ zoom_level = 13
|
|
98 |
|
99 |
# Create a sidebar for controls
|
100 |
with st.sidebar:
|
|
|
|
|
101 |
st.image(image1, width=200)
|
102 |
|
103 |
# Add a dropdown for filtering "Fonte"
|
@@ -198,6 +200,7 @@ filtered_data['Predicted_target'] = predicted_target
|
|
198 |
tab1, tab2, tab3, tab4 = st.tabs(["Mapa", "Planilha", "Análise dos Dados", "Regressão Linear"])
|
199 |
|
200 |
with tab1:
|
|
|
201 |
# Define a PyDeck view state for the initial map view
|
202 |
view_state = pdk.ViewState(latitude=filtered_data['latitude'].mean(), longitude=filtered_data['longitude'].mean(), zoom=zoom_level)
|
203 |
|
@@ -218,6 +221,7 @@ with tab1:
|
|
218 |
#st.map(filtered_data, zoom=zoom_level, use_container_width=True)
|
219 |
|
220 |
with tab2:
|
|
|
221 |
st.write("Dados:", filtered_data) # Debug: Print filtered_data
|
222 |
|
223 |
if st.button('Baixar planilha'):
|
@@ -245,6 +249,7 @@ with tab2:
|
|
245 |
download_placeholder.markdown(href, unsafe_allow_html=True)
|
246 |
|
247 |
with tab3:
|
|
|
248 |
k_threshold = 5
|
249 |
|
250 |
# Function to perform bootstrap on the predicted target values
|
@@ -409,4 +414,5 @@ with tab3:
|
|
409 |
components.html(profile_html, height=600, scrolling=True)
|
410 |
|
411 |
with tab4:
|
|
|
412 |
components.iframe("https://davidsb-rl-2.hf.space", height=600, scrolling=True)
|
|
|
98 |
|
99 |
# Create a sidebar for controls
|
100 |
with st.sidebar:
|
101 |
+
st.markdown(f'<style>{css_style}</style>', unsafe_allow_html=True)
|
102 |
+
|
103 |
st.image(image1, width=200)
|
104 |
|
105 |
# Add a dropdown for filtering "Fonte"
|
|
|
200 |
tab1, tab2, tab3, tab4 = st.tabs(["Mapa", "Planilha", "Análise dos Dados", "Regressão Linear"])
|
201 |
|
202 |
with tab1:
|
203 |
+
st.markdown(f'<style>{css_style}</style>', unsafe_allow_html=True)
|
204 |
# Define a PyDeck view state for the initial map view
|
205 |
view_state = pdk.ViewState(latitude=filtered_data['latitude'].mean(), longitude=filtered_data['longitude'].mean(), zoom=zoom_level)
|
206 |
|
|
|
221 |
#st.map(filtered_data, zoom=zoom_level, use_container_width=True)
|
222 |
|
223 |
with tab2:
|
224 |
+
st.markdown(f'<style>{css_style}</style>', unsafe_allow_html=True)
|
225 |
st.write("Dados:", filtered_data) # Debug: Print filtered_data
|
226 |
|
227 |
if st.button('Baixar planilha'):
|
|
|
249 |
download_placeholder.markdown(href, unsafe_allow_html=True)
|
250 |
|
251 |
with tab3:
|
252 |
+
st.markdown(f'<style>{css_style}</style>', unsafe_allow_html=True)
|
253 |
k_threshold = 5
|
254 |
|
255 |
# Function to perform bootstrap on the predicted target values
|
|
|
414 |
components.html(profile_html, height=600, scrolling=True)
|
415 |
|
416 |
with tab4:
|
417 |
+
st.markdown(f'<style>{css_style}</style>', unsafe_allow_html=True)
|
418 |
components.iframe("https://davidsb-rl-2.hf.space", height=600, scrolling=True)
|