Spaces:
Runtime error
Runtime error
Download app/components/Header.py from ucGroupProj/Back-end-Agentic-Chat-bot: direct link, hf CLI and curl.
- Browser
- Download file 543 Bytes
-
https://huggingface.co/spaces/ucGroupProj/Back-end-Agentic-Chat-bot/resolve/main/app/components/Header.py
- Command line
-
hf download hf://spaces/ucGroupProj/Back-end-Agentic-Chat-bot/app/components/Header.py
-
curl -L -o Header.py https://huggingface.co/spaces/ucGroupProj/Back-end-Agentic-Chat-bot/resolve/main/app/components/Header.py
543 Bytes
| # /app/components/Header.py | |
| import gradio as gr | |
| from html import escape | |
| def build_header(title: str = "Storefront Chatbot", subtitle: str = "Anonymous mode ready"): | |
| t = escape(title) | |
| s = escape(subtitle) | |
| html = f""" | |
| <div style="display:flex;justify-content:space-between;align-items:center;padding:8px 4px 4px;"> | |
| <div> | |
| <div style="font-weight:700;font-size:20px;color:#0f172a;">{t}</div> | |
| <div style="font-size:13px;color:#64748b;">{s}</div> | |
| </div> | |
| </div> | |
| """ | |
| return gr.HTML(value=html) | |