Instructions to use haresh2792005/MFAF-Net with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MediaPipe
How to use haresh2792005/MFAF-Net with MediaPipe:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download static/css/style.css from haresh2792005/MFAF-Net: direct link, hf CLI and curl.
- Browser
- Download file 3.91 kB
-
https://huggingface.co/haresh2792005/MFAF-Net/resolve/main/static/css/style.css
- Command line
-
hf download hf://haresh2792005/MFAF-Net/static/css/style.css
-
curl -L -o style.css https://huggingface.co/haresh2792005/MFAF-Net/resolve/main/static/css/style.css
3.91 kB
| /* MFAF-Net — Additional CSS overrides */ | |
| /* Main styles live in templates/index.html <style> block */ | |
| /* ========================================================= | |
| ANIMATION KEYFRAMES — Step Progress Indicator | |
| ========================================================= */ | |
| @keyframes stepPulse { | |
| 0% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.6); } | |
| 70% { box-shadow: 0 0 0 10px rgba(74, 144, 226, 0); } | |
| 100% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0); } | |
| } | |
| @keyframes stepComplete { | |
| 0% { transform: scale(0.8); opacity: 0; } | |
| 60% { transform: scale(1.1); } | |
| 100% { transform: scale(1); opacity: 1; } | |
| } | |
| @keyframes progressFill { | |
| from { width: 0%; } | |
| to { width: 100%; } | |
| } | |
| @keyframes fadeSlideIn { | |
| from { opacity: 0; transform: translateY(16px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| @keyframes shimmer { | |
| 0% { background-position: -200% 0; } | |
| 100% { background-position: 200% 0; } | |
| } | |
| .step-active { | |
| animation: stepPulse 1.4s ease-in-out infinite; | |
| } | |
| .step-done { | |
| animation: stepComplete 0.35s ease-out forwards; | |
| } | |
| .results-fadein { | |
| animation: fadeSlideIn 0.5s ease-out both; | |
| } | |
| /* ========================================================= | |
| RESPONSIVE BREAKPOINTS — Mobile < 768 px | |
| ========================================================= */ | |
| @media (max-width: 768px) { | |
| .upload-area { | |
| padding: 1.5rem 1rem; | |
| min-height: 160px; | |
| } | |
| .form-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .results-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .image-comparison { | |
| flex-direction: column; | |
| } | |
| .image-comparison > * { | |
| width: 100% ; | |
| } | |
| .metrics-row { | |
| flex-wrap: wrap; | |
| gap: 0.5rem; | |
| } | |
| .metric-card { | |
| flex: 1 1 calc(50% - 0.5rem); | |
| min-width: 120px; | |
| } | |
| .step-labels { | |
| display: none; /* hide text labels on very small screens */ | |
| } | |
| .btn-analyze { | |
| width: 100%; | |
| padding: 0.9rem; | |
| } | |
| .navbar-brand span { | |
| font-size: 1rem; | |
| } | |
| h1, .hero-title { | |
| font-size: 1.5rem; | |
| } | |
| .sidebar { | |
| width: 100%; | |
| position: static; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .metric-card { | |
| flex: 1 1 100%; | |
| } | |
| .tab-nav { | |
| overflow-x: auto; | |
| white-space: nowrap; | |
| } | |
| .result-image { | |
| max-height: 220px; | |
| } | |
| } | |
| /* ========================================================= | |
| PRINT STYLES — Results Panel | |
| ========================================================= */ | |
| @media print { | |
| /* Hide non-essential chrome */ | |
| nav, | |
| .upload-section, | |
| .form-section, | |
| .btn-analyze, | |
| .step-progress, | |
| footer, | |
| .toast-container { | |
| display: none ; | |
| } | |
| /* Show results panel full-width */ | |
| .results-section { | |
| display: block ; | |
| width: 100% ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| box-shadow: none ; | |
| } | |
| /* Flatten card backgrounds */ | |
| .card, .metric-card, .result-card { | |
| box-shadow: none ; | |
| border: 1px solid #ccc ; | |
| break-inside: avoid; | |
| } | |
| /* Images should scale to page */ | |
| .result-image, img { | |
| max-width: 100% ; | |
| height: auto ; | |
| page-break-inside: avoid; | |
| } | |
| /* Results grid: 2 columns in print */ | |
| .results-grid { | |
| grid-template-columns: 1fr 1fr ; | |
| } | |
| /* Metrics always in one row */ | |
| .metrics-row { | |
| display: flex ; | |
| flex-wrap: wrap ; | |
| } | |
| .metric-card { | |
| flex: 1 1 22% ; | |
| border: 1px solid #ccc ; | |
| } | |
| /* Page header */ | |
| body::before { | |
| content: "MFAF-Net — Facial Analysis Report"; | |
| display: block; | |
| font-size: 1.4rem; | |
| font-weight: bold; | |
| text-align: center; | |
| margin-bottom: 1rem; | |
| border-bottom: 2px solid #333; | |
| padding-bottom: 0.5rem; | |
| } | |
| /* Force black text */ | |
| * { | |
| color: #000 ; | |
| background: #fff ; | |
| } | |
| a[href]::after { | |
| content: none ; /* suppress URL printing */ | |
| } | |
| } | |