Spaces:
Sleeping
Sleeping
Pavan Kumar Jonnakuti commited on
Commit ·
d4fbe44
1
Parent(s): ab202d4
Fix st.text_input empty label warning and replace deprecated components.html with st.iframe
Browse files- streamlit/dashboard.py +2 -3
streamlit/dashboard.py
CHANGED
|
@@ -16,7 +16,6 @@ Components
|
|
| 16 |
|
| 17 |
# ==================== IMPORTS ====================
|
| 18 |
import streamlit as st
|
| 19 |
-
import streamlit.components.v1 as components
|
| 20 |
import os
|
| 21 |
import pandas as pd
|
| 22 |
import numpy as np
|
|
@@ -860,7 +859,7 @@ st.markdown(
|
|
| 860 |
""",
|
| 861 |
unsafe_allow_html=True
|
| 862 |
)
|
| 863 |
-
reset_trigger = st.text_input("", placeholder="reset_trigger_placeholder", key="reset_trigger")
|
| 864 |
|
| 865 |
if reset_trigger == "true":
|
| 866 |
if "main_map" in st.session_state:
|
|
@@ -875,7 +874,7 @@ if reset_trigger == "true":
|
|
| 875 |
st.session_state.reset_trigger = ""
|
| 876 |
st.rerun()
|
| 877 |
|
| 878 |
-
|
| 879 |
"""
|
| 880 |
<script>
|
| 881 |
(function() {
|
|
|
|
| 16 |
|
| 17 |
# ==================== IMPORTS ====================
|
| 18 |
import streamlit as st
|
|
|
|
| 19 |
import os
|
| 20 |
import pandas as pd
|
| 21 |
import numpy as np
|
|
|
|
| 859 |
""",
|
| 860 |
unsafe_allow_html=True
|
| 861 |
)
|
| 862 |
+
reset_trigger = st.text_input("Reset Trigger", placeholder="reset_trigger_placeholder", key="reset_trigger", label_visibility="collapsed")
|
| 863 |
|
| 864 |
if reset_trigger == "true":
|
| 865 |
if "main_map" in st.session_state:
|
|
|
|
| 874 |
st.session_state.reset_trigger = ""
|
| 875 |
st.rerun()
|
| 876 |
|
| 877 |
+
st.iframe(
|
| 878 |
"""
|
| 879 |
<script>
|
| 880 |
(function() {
|