feeling_machine / index.html
RemiFabre's picture
Dark Mode + update credits in the footer (#1)
af5b8e0
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Feeling Machine - Expressive emotions for Reachy Mini</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--background: hsl(220, 13%, 8%);
--foreground: hsl(210, 40%, 98%);
--card: hsl(220, 13%, 12%);
--card-foreground: hsl(210, 40%, 98%);
--primary: hsl(36, 100%, 50%);
--primary-foreground: hsl(0, 0%, 100%);
--muted: hsl(220, 13%, 18%);
--muted-foreground: hsl(215, 16%, 60%);
--border: hsl(220, 13%, 20%);
--radius: 0.5rem;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--background);
color: var(--foreground);
line-height: 1.6;
min-height: 100vh;
}
.container {
max-width: 72rem;
margin: 0 auto;
padding: 0 1.5rem;
}
/* Hero Section */
.hero {
padding: 4rem 0;
}
.hero-grid {
display: grid;
grid-template-columns: 1fr;
gap: 3rem;
align-items: center;
}
@media (min-width: 768px) {
.hero-grid {
grid-template-columns: 1fr 1fr;
}
}
.hero-visual {
display: flex;
justify-content: center;
align-items: center;
padding: 2rem;
}
.pad-cube {
width: 280px;
height: 280px;
background: linear-gradient(135deg, #9B59B6 0%, #3498DB 100%);
border-radius: 1rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
box-shadow: 0 25px 50px -12px rgba(155, 89, 182, 0.4);
}
.pad-cube .emoji {
font-size: 5rem;
margin-bottom: 1rem;
}
.pad-cube .axes {
font-size: 0.9rem;
opacity: 0.9;
text-align: center;
}
.hero-content {
text-align: left;
}
.hero-title-wrapper {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
margin-bottom: 1.5rem;
}
.hero-emoji {
font-size: 3.75rem;
}
.hero-title {
font-size: 3rem;
font-weight: 700;
color: var(--foreground);
}
.tags {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.5rem;
margin-bottom: 1.5rem;
}
.tag {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.75rem;
font-size: 0.75rem;
font-weight: 500;
border-radius: 9999px;
background-color: rgba(155, 89, 182, 0.15);
color: var(--primary);
}
.hero-description {
font-size: 1.125rem;
color: var(--muted-foreground);
max-width: 600px;
margin: 0 auto;
}
.hero-description strong {
color: var(--foreground);
}
/* Technical Section */
.technical {
padding: 4rem 0;
background-color: var(--card);
}
.technical-grid {
display: grid;
grid-template-columns: 1fr;
gap: 4rem;
align-items: flex-start;
}
@media (min-width: 768px) {
.technical-grid {
grid-template-columns: 1fr 1fr;
}
}
.technical h2 {
font-size: 1.5rem;
font-weight: 700;
color: var(--foreground);
margin-bottom: 1rem;
margin-top: 2rem;
}
.technical h2:first-child {
margin-top: 0;
}
.steps {
list-style: none;
display: flex;
flex-direction: column;
gap: 1rem;
}
.step {
display: flex;
align-items: flex-start;
gap: 1rem;
color: var(--muted-foreground);
}
.step-number {
display: flex;
align-items: center;
justify-content: center;
min-width: 1.75rem;
height: 1.75rem;
border-radius: 9999px;
background-color: var(--primary);
color: white;
font-size: 0.875rem;
font-weight: 600;
}
.step-content {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.step-title {
font-size: 0.875rem;
font-weight: 600;
color: var(--foreground);
}
.step-body {
font-size: 0.875rem;
color: var(--muted-foreground);
}
.step-body a {
color: var(--muted-foreground);
text-decoration: underline;
transition: color 0.2s;
}
.step-body a:hover {
color: var(--primary);
}
.pad-explanation {
background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(52, 152, 219, 0.1) 100%);
border-radius: 0.75rem;
padding: 1.5rem;
}
.pad-explanation h3 {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 1rem;
color: var(--foreground);
}
.pad-axis {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.75rem;
font-size: 0.9rem;
}
.pad-axis:last-child {
margin-bottom: 0;
}
.axis-label {
font-weight: 600;
color: var(--primary);
min-width: 100px;
}
.axis-desc {
color: var(--muted-foreground);
}
/* Footer */
footer {
border-top: 1px solid var(--border);
padding: 3rem 0;
}
.footer-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
margin-bottom: 2rem;
}
@media (min-width: 768px) {
.footer-grid {
grid-template-columns: repeat(3, 1fr);
}
}
.footer-column {
display: flex;
flex-direction: column;
gap: 1rem;
}
.author-section {
display: flex;
align-items: center;
gap: 1.25rem;
}
.author-link {
display: flex;
align-items: center;
gap: 0.75rem;
text-decoration: none;
color: inherit;
}
.author-link:hover .author-name {
color: var(--primary);
}
.author-link:hover .author-avatar {
border-color: var(--primary);
}
.author-avatar {
width: 3.5rem;
height: 3.5rem;
border-radius: 9999px;
border: 2px solid white;
transition: border-color 0.2s;
}
.author-intro {
font-size: 0.875rem;
color: var(--muted-foreground);
}
.author-name {
font-size: 1.125rem;
font-weight: 600;
transition: color 0.2s;
}
.follow-btn {
display: inline-flex;
align-items: center;
padding: 0.375rem 0.75rem;
font-size: 0.75rem;
font-weight: 500;
border-radius: 9999px;
border: 1px solid var(--border);
background-color: var(--card);
color: var(--foreground);
text-decoration: none;
transition: background-color 0.2s;
}
.follow-btn:hover {
background-color: var(--muted);
}
.social-links {
display: flex;
gap: 0.75rem;
}
.social-link {
display: flex;
align-items: center;
justify-content: center;
width: 2.25rem;
height: 2.25rem;
border-radius: 9999px;
background-color: var(--muted);
color: var(--muted-foreground);
text-decoration: none;
transition: all 0.2s;
}
.social-link:hover {
background-color: var(--primary);
color: var(--primary-foreground);
}
.social-link svg {
width: 1.25rem;
height: 1.25rem;
}
.footer-title {
font-size: 0.875rem;
font-weight: 600;
}
.footer-links {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.footer-link {
font-size: 0.875rem;
color: var(--muted-foreground);
text-decoration: none;
transition: color 0.2s;
}
.footer-link:hover {
color: var(--primary);
}
.credits-text {
font-size: 0.875rem;
color: var(--muted-foreground);
}
.credits-text a {
color: var(--muted-foreground);
text-decoration: none;
transition: color 0.2s;
}
.credits-text a:hover {
color: var(--primary);
}
</style>
</head>
<body>
<!-- Hero Section -->
<section class="hero">
<div class="container">
<div class="hero-grid">
<div class="hero-visual">
<div class="pad-cube">
<span class="emoji">🎭</span>
<div class="axes">
P · A · D<br>
Pleasure · Arousal · Dominance
</div>
</div>
</div>
<div class="hero-content">
<div class="hero-title-wrapper">
<h1 class="hero-title">Feeling Machine</h1>
</div>
<div class="tags">
<span class="tag">emotions</span>
<span class="tag">procedural</span>
<span class="tag">PAD model</span>
<span class="tag">no speech</span>
</div>
<p class="hero-description">
<strong>Expressive robot that communicates through emotions only.</strong><br>
Reachy Mini listens to you and responds with procedurally-generated motion and sound based on the PAD emotional model. No speech, just pure expression.
</p>
</div>
</div>
</div>
</section>
<!-- Technical Section -->
<section class="technical">
<div class="container">
<div class="technical-grid">
<div>
<h2>How it works</h2>
<ol class="steps">
<li class="step">
<span class="step-number">1</span>
<div class="step-content">
<div class="step-title">Connect & Launch</div>
<div class="step-body">
Connect to your Reachy Mini, navigate to "Applications", find "Feeling Machine" and click "Launch" (make sure you have the <a href="https://hf.co/reachy-mini/#download" target="_blank" rel="noreferrer">dashboard</a> installed).
</div>
</div>
</li>
<li class="step">
<span class="step-number">2</span>
<div class="step-content">
<div class="step-title">Talk naturally</div>
<div class="step-body">Speak to the robot like you would to a friend. Tell jokes, share good or bad news, ask questions, or just say hello. <strong>The robot won't talk back</strong> - it only expresses emotions.</div>
</div>
</li>
<li class="step">
<span class="step-number">3</span>
<div class="step-content">
<div class="step-title">Watch it react</div>
<div class="step-body">The AI interprets what you say and responds with expressive body language and procedurally-generated sounds. Each reaction is unique!</div>
</div>
</li>
<li class="step">
<span class="step-number">4</span>
<div class="step-content">
<div class="step-title">Try classic emotions</div>
<div class="step-body">Say <strong>"play classic emotion"</strong> or <strong>"show me classic joy"</strong> to use pre-recorded animations from the Pollen library instead of procedural ones.</div>
</div>
</li>
</ol>
<h2>Installation (local)</h2>
<ol class="steps">
<li class="step">
<span class="step-number">1</span>
<div class="step-content">
<div class="step-title">Clone & install</div>
<div class="step-body">
<code>git clone https://huggingface.co/spaces/RemiFabre/feeling_machine</code><br>
<code>cd feeling_machine && uv sync</code>
</div>
</div>
</li>
<li class="step">
<span class="step-number">2</span>
<div class="step-content">
<div class="step-title">Run the app</div>
<div class="step-body">
<code>cd src/feeling_machine && python main.py --gradio</code><br>
Then open <strong>http://127.0.0.1:7860/</strong> or <strong>http://127.0.0.1:7861/</strong>
</div>
</div>
</li>
</ol>
</div>
<div>
<h2>The PAD Model</h2>
<p style="color: var(--muted-foreground); margin-bottom: 1rem; font-size: 0.9rem;">
Instead of playing pre-recorded animations, Feeling Machine generates unique expressive movements on-the-fly using the <strong>PAD emotional model</strong> - a psychological framework that represents emotions in a 3D space.
</p>
<div class="pad-explanation">
<h3>Three dimensions of emotion</h3>
<div class="pad-axis">
<span class="axis-label">Pleasure</span>
<span class="axis-desc">Positive (+1) ↔ Negative (-1)</span>
</div>
<div class="pad-axis">
<span class="axis-label">Arousal</span>
<span class="axis-desc">Excited (+1) ↔ Calm (-1)</span>
</div>
<div class="pad-axis">
<span class="axis-label">Dominance</span>
<span class="axis-desc">In control (+1) ↔ Submissive (-1)</span>
</div>
</div>
<h2>Why procedural generation?</h2>
<p style="color: var(--muted-foreground); margin-bottom: 1rem; font-size: 0.9rem;">
Pre-recorded emotions look the same every time. Procedural generation creates <strong>infinite variations</strong> - each expression is unique while staying emotionally consistent.
</p>
<p style="color: var(--muted-foreground); font-size: 0.9rem;">
The PAD values control head movement amplitude, speed, antenna positions, and sound characteristics. Joy produces quick, bouncy movements with high-pitched sounds. Sadness creates slow, drooping motions with lower tones.
</p>
<h2>Named emotions available</h2>
<p style="color: var(--muted-foreground); font-size: 0.9rem;">
<strong>joy</strong>, <strong>happiness</strong>, <strong>anger</strong>, <strong>fear</strong>, <strong>sadness</strong>, <strong>surprise</strong>, <strong>boredom</strong>, <strong>uncertainty</strong>, <strong>disgust</strong>, <strong>neutral</strong>
</p>
<p style="color: var(--muted-foreground); margin-top: 0.5rem; font-size: 0.85rem;">
Or the AI can specify custom P/A/D values for nuanced emotional expressions.
</p>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="container">
<div class="footer-grid">
<!-- Author -->
<div class="footer-column">
<div class="author-section">
<a href="https://huggingface.co/RemiFabre" target="_blank" rel="noopener noreferrer" class="author-link">
<img src="https://cdn-avatars.huggingface.co/v1/production/uploads/noauth/AkX9RbZqzzQlz797iJeqL.jpeg" alt="RemiFabre" class="author-avatar">
<div>
<p class="author-intro">Hey, I'm</p>
<p class="author-name">RemiFabre</p>
</div>
</a>
<a href="https://huggingface.co/RemiFabre" target="_blank" rel="noopener noreferrer" class="follow-btn">Follow</a>
</div>
<div class="social-links">
<a href="https://twitter.com/RemiFabreRobot" target="_blank" rel="noopener noreferrer" aria-label="Twitter" class="social-link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z"></path></svg>
</a>
<a href="https://github.com/RemiFabre" target="_blank" rel="noopener noreferrer" aria-label="GitHub" class="social-link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"></path><path d="M9 18c-4.51 2-5-2-7-2"></path></svg>
</a>
<a href="https://www.linkedin.com/in/remifabre" target="_blank" rel="noopener noreferrer" aria-label="LinkedIn" class="social-link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect width="4" height="12" x="2" y="9"></rect><circle cx="4" cy="4" r="2"></circle></svg>
</a>
</div>
</div>
<!-- Resources -->
<div class="footer-column">
<h4 class="footer-title">Resources</h4>
<ul class="footer-links">
<li><a href="https://huggingface.co/docs/reachy_mini/index" target="_blank" rel="noopener noreferrer" class="footer-link">Read the documentation & FAQ</a></li>
<li><a href="https://hf.co/reachy-mini/#apps" target="_blank" rel="noopener noreferrer" class="footer-link">Browse other apps</a></li>
<li><a href="https://huggingface.co/blog/pollen-robotics/make-and-publish-your-reachy-mini-apps" target="_blank" rel="noopener noreferrer" class="footer-link">Make your own app</a></li>
</ul>
</div>
<!-- Credits -->
<div class="footer-column">
<h4 class="footer-title">Credits</h4>
<p class="credits-text">PAD-based motion and sound generation by <strong>Anaelle Jaffré</strong>, from the <a href="https://github.com/InTheSnow31/reachy-mini-I3R/blob/main/src/movement_sound_generation/README.md" target="_blank" rel="noopener noreferrer"><u>I3R student project</u></a>.</p>
</div>
</div>
</div>
</footer>
</body>
</html>