import gradio as gr from model import multimodal_analyze from database import get_history, clear_history_db # ============================================== # HISTORY DISPLAY # ============================================== def fetch_history(): records = get_history() if not records: return "
No history yet.
" html = "" for r in records: html += f"""