Spaces:
Sleeping
Sleeping
File size: 842 Bytes
703d36a |
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 |
import streamlit as st
# Function to display popup message
@st.experimental_dialog("View Details")
def fn_display_popup_message(lv_text):
"""Display popup message"""
st.text(lv_text)
# Function to display user Error, Warning or Success Message
def fn_display_status_messages(lv_text, lv_type, ui_processing_message):
"""Display user Info, Error, Warning or Success Messages"""
if lv_type == "Success":
with ui_processing_message.container():
st.success(lv_text)
elif lv_type == "Error":
with ui_processing_message.container():
st.error(lv_text)
elif lv_type == "Warning":
with ui_processing_message.container():
st.warning(lv_text)
else:
with ui_processing_message.container():
st.info(lv_text) |