File size: 1,237 Bytes
264e157
 
 
 
 
 
7423004
264e157
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c3a9592
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
title: Emotion2Music-AI
emoji: 🎵
colorFrom: blue
colorTo: pink
sdk: gradio
sdk_version: 5.30.0
app_file: app.py
pinned: true
license: mit
thumbnail: >-
  https://cdn-uploads.huggingface.co/production/uploads/67d65b3a67cb21c230aced47/_Umu6NwOW5RENU1qZkxn4.png
short_description: This AI-powered app analyzes your mood from a short sentence
---
# Emotion2Music AI

**Turn your feelings into music!**

 AI-powered app analyzes your mood from a text description and instantly generates a short, custom music clip that matches your emotional tone.
## How It Works

1. You describe how you're feeling (e.g. *“I feel hopeful but a little sad”*)
2. The app detects the most likely emotion using a Hugging Face model.
3. Based on the emotion, it generates a fitting music clip using AI.
4. You can listen, download, and share the generated audio.

## Powered By

- [j-hartmann/emotion-english-distilroberta-base](https://huggingface.co/j-hartmann/emotion-english-distilroberta-base) for emotion detection
- [facebook/musicgen-small](https://huggingface.co/facebook/musicgen-small) for text-to-music generation
- [Gradio](https://gradio.app/) for the web interface

## Try it now — just type your mood and listen to your custom track!