ksvmuralidhar's picture
Create app.py
ab6f7dc verified
raw
history blame
876 Bytes
import logging
from classification_model_monitor import classification_model_monitor
import streamlit as st
logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s', level=logging.INFO)
def main():
try:
st.markdown("""
<style>
.block-container {
padding-top: 2rem;
padding-bottom: 3rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
}
</style>
""",
unsafe_allow_html=True)
logging.info('Entering application')
classification_model_monitor()
logging.info('Exiting application')
except Exception as e:
logging.critical(f"Error in main(): {e}")
st.error("Unexpected Error. Unable to display the dashboard")
if __name__ == '__main__':
main()