import gradio as gr
import spaces
# Initialisation du conteneur ZeroGPU
@spaces.GPU
def init_gpu():
return True
init_gpu()
# Style CSS personnalisé (Glassmorphism ultra-lisible et responsive)
custom_css = """
.hero-card {
background: linear-gradient(135deg, #1e293b, #0f172a) !important;
border: 1px solid #334155 !important;
border-radius: 16px !important;
padding: 24px !important;
color: #f8fafc !important;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
margin-bottom: 20px !important;
}
.hero-title {
font-size: 2.2rem;
font-weight: 800;
background: linear-gradient(90deg, #38bdf8, #818cf8);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 6px;
}
.hero-sub {
font-size: 1.1rem;
font-weight: 600;
color: #cbd5e1;
margin-bottom: 14px;
}
.badge-container {
margin-bottom: 12px;
}
.badge {
display: inline-block;
background: rgba(56, 189, 248, 0.15);
color: #38bdf8;
border: 1px solid rgba(56, 189, 248, 0.4);
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
margin-right: 6px;
margin-bottom: 6px;
}
.contact-card {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 16px;
color: #e2e8f0;
}
.contact-card h3 {
margin-top: 0;
color: #38bdf8;
}
.contact-card p {
margin: 8px 0;
font-size: 14px;
}
.contact-card a {
color: #38bdf8;
text-decoration: underline;
}
.quote-box {
border-left: 4px solid #38bdf8;
background: rgba(15, 23, 42, 0.6);
padding: 12px 16px;
border-radius: 0 8px 8px 0;
color: #94a3b8;
font-style: italic;
margin-top: 10px;
}
"""
with gr.Blocks(title="Portfolio & Carte de Visite - Hoby Tahiry") as demo:
# En-tête / Carte de Visite (Glassmorphism Sombre Ultra-Lisible)
with gr.Row(elem_classes=["hero-card"]):
with gr.Column(scale=2):
gr.HTML(
"""
RANDRIANARISOA Hoby Tahiry
Développeur d'Applications | Spécialiste Fine-Tuning IA & Workflows n8n
🎓 42 Antananarivo
📐 Mathématiques Fondamentales
🧠 Fine-Tuning IA
⚡ Expert n8n
"Formé aux exigences de l'École 42 et fort d'un parcours en mathématiques fondamentales, je me spécialise dans l'adaptation et le réglage fin (fine-tuning) de modèles d'IA, le développement logiciel robuste C/C++ / Python, et l'architecture d'automatisations complexes via n8n."
"""
)
with gr.Column(scale=1):
gr.HTML(
"""
"""
)
# Contenu Onglets
with gr.Tabs():
# Onglet 1: Spécialités IA & Automatisations
with gr.TabItem("🤖 IA & Automatisations (n8n)"):
with gr.Row():
with gr.Column():
gr.Markdown(
"""
### 🎯 Adaptation & Fine-Tuning de Modèles IA
* **Fine-Tuning & Quantization :** Entraînement spécialisé et optimisation de modèles de langage (LLM), Speech-to-Text et Vision.
* **Traitement & Saisie de Données :** Création de jeux de données ciblés, pipelines d'évaluation et alignement de modèles.
* **Intégration d'IA Applicative :** Déploiement et intégration d'API d'inférence avancées au cœur de systèmes existants.
"""
)
with gr.Column():
gr.Markdown(
"""
### ⚡ Expertise Automatisation n8n
* **Workflows Complexes :** Conception de scénarios d'automatisation multi-services, gestion d'erreurs et webhooks.
* **Traitement de Documents :** Extraction, transformation et routage de données automatisés via IA + n8n.
* **Intégration API :** Interconnexion fluide entre bases de données, backends et services tiers.
"""
)
# Onglet 2: Distinctions & Hackathons
with gr.TabItem("🏆 Hackathons & Distinctions"):
gr.Markdown(
"""
* ❤️ **Coup de cœur du jury** – Stupid Hackathon 2025 (Code Talent)
* *Projet web éco-humoristique distingué pour sa créativité, son design et son expérience utilisateur.*
* 🥉 **3ᵉ place – Hackathon AgreTech FIA** (Projet VOLEO)
* *Plateforme AgTech d'analyse intelligente du sol et du climat par IA, avec recommandation de cultures.*
* 🏅 **Finaliste à CCI Ivato** – Hackathon Agretec Ministère de l'Agriculture (Projet VOLEO)
* 🥈 **2ᵉ place nationale interuniversitaire** – Orange Digital Center Codingame Madagascar 2025
"""
)
# Onglet 3: Projets 42 & Logiciels
with gr.TabItem("🚀 Projets Système & Web"):
with gr.Row():
with gr.Column():
gr.Markdown(
"""
### 🎓 Projets École 42 Antananarivo
* **ft_transcendence** *(Python/Django)* : Jeu 2D multijoueur temps réel (bots IA, collisions, WebSockets).
* **ft_irc** *(C++)* : Serveur de chat réseau conforme au protocole IRC (sockets, communication concurrente).
"""
)
with gr.Column():
gr.Markdown(
"""
* **Inception** *(Docker)* : Infrastructure microservices conteneurisée et déployée sous Docker.
* **Minishell** *(C)* : Interpréteur de commandes UNIX (gestion des processus, parsing, mémoire).
"""
)
# Onglet 4: Parcours & Compétences
with gr.TabItem("💼 Parcours & Compétences"):
with gr.Row():
with gr.Column():
gr.Markdown("### 💼 Expériences Professionnelles")
gr.Markdown(
"""
* **2026 :** Stage - Développeur IA chez *CONNECTEO*
* **2022 - 2024 :** Professeur particulier (Mathématiques & Physique)
"""
)
gr.Markdown("### 🎓 Formations & Diplômes")
gr.Markdown(
"""
* **42 Antananarivo :** Cursus Développement (Tronc commun & Pro Piscine AI/ML)
* **Université d'Antananarivo / Fianarantsoa :** Licence 3 en Mathématiques Fondamentales
* **Certifications :** Automatisation n8n (KODATA), Library Pandas, Odoo, Flutter (ODC), Éducation financière (Axian University)
"""
)
with gr.Column():
gr.Markdown("### 🛠 Stack Technique")
gr.Markdown(
"""
* **IA & Data :** Fine-tuning LLM/IA, Python, Pandas, PyTorch / Hugging Face.
* **Langages Système & Backend :** C, C++, Python (FastAPI/Django).
* **Automation & DevOps :** n8n, Docker, Git/GitHub, Linux.
* **Soft Skills :** Rigueur analytique, leadership, adaptabilité, résolution de problèmes complexes.
"""
)
gr.Markdown("---")
gr.Markdown("Carte de Visite & Portfolio hébergés sur Hugging Face Spaces")
if __name__ == "__main__":
demo.launch(theme=gr.themes.Soft(), css=custom_css)