File size: 680 Bytes
ef31fc1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# /app/components/Footer.py
import gradio as gr
from html import escape

def build_footer(version: str = "0.1.0") -> gr.HTML:
    """
    Render a simple footer with version info.
    Appears at the bottom of the Gradio Blocks UI.
    """
    ver = escape(version or "")
    html = f"""
    <div style="margin-top:24px;text-align:center;
                font-size:12px;color:#6b7280;">
      <hr style="margin:16px 0;border:none;border-top:1px solid #e5e7eb"/>
      <div>AgenticCore Chatbot — v{ver}</div>
      <div style="margin-top:4px;">
        Built with <span style="color:#ef4444;">♥</span> using Gradio
      </div>
    </div>
    """
    return gr.HTML(value=html)