Download src/ui/components/header.py from slityak/minyuuu: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/spaces/slityak/minyuuu/resolve/main/src/ui/components/header.py
- Command line
-
hf download hf://spaces/slityak/minyuuu/src/ui/components/header.py
-
curl -L -o header.py https://huggingface.co/spaces/slityak/minyuuu/resolve/main/src/ui/components/header.py
335 Bytes
| """ | |
| Header komponens | |
| """ | |
| import gradio as gr | |
| from ui.utils import render | |
| def create_header( | |
| title="Rock-Paper-Scissors", | |
| subtitle="Upload an image or use your webcam to detect hand gestures", | |
| icon="🎮" | |
| ): | |
| with gr.Row(): | |
| gr.HTML(render('header.html', title=title, subtitle=subtitle, icon=icon)) | |