import streamlit as st def render_header(): st.markdown("

Deepfake Image Detector

", unsafe_allow_html=True) st.markdown("

Select or drag an image below to analyze it.

", unsafe_allow_html=True) def render_result(is_fake, confidence_percentage): if is_fake: box_class = "result-box-fake" display_label = "AI-Generated (Fake)" color_fill = "#8b5cf6" else: box_class = "result-box-real" display_label = "Authentic (Real)" color_fill = "#7dd3fc" st.balloons() html_result = f"""

Result: {display_label}

Confidence: {confidence_percentage}%
""" st.markdown(html_result, unsafe_allow_html=True) def render_footer(): st.markdown("
Powered by Deep Learning • v1.0
", unsafe_allow_html=True)