Spaces:
Paused
Paused
File size: 801 Bytes
f6ea7de | 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 | import streamlit as st
from typing import Optional
from app.utils.ui_elements import load_css
from app.config import AppConfig
def render(config: Optional[AppConfig] = None) -> None:
"""Render the header component.
Args:
config: Optional application configuration
"""
# Load custom CSS
load_css()
# Get app title from config or use default
app_title = config.APP_NAME if config else "Email Spam Classifier"
# Header with logo and title
col1, col2 = st.columns([1, 5])
with col1:
# You can replace this with an actual logo image
st.markdown("# 📧")
with col2:
st.markdown(f"""
# {app_title}
Detect unwanted spam emails with machine learning
""")
st.markdown("---")
|