Spaces:
Running
Running
Adding AI Features
Browse files- .gitignore +34 -0
- README.md +100 -62
- index.html +0 -0
- requirements.txt +12 -2
.gitignore
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Workspace files not needed for deployment
|
2 |
+
todo.md
|
3 |
+
ai-music-todo.md
|
4 |
+
deploy_url.txt
|
5 |
+
music-app.html
|
6 |
+
ai-music-discovery.html
|
7 |
+
timeout_*.txt
|
8 |
+
|
9 |
+
# Research and development files
|
10 |
+
search_results/
|
11 |
+
browser/
|
12 |
+
docs/
|
13 |
+
download/
|
14 |
+
code/
|
15 |
+
|
16 |
+
# Previous deployment packages
|
17 |
+
musisync-huggingface-deployment-fixed.zip
|
18 |
+
huggingface-deployment/
|
19 |
+
|
20 |
+
# System files
|
21 |
+
.DS_Store
|
22 |
+
*.log
|
23 |
+
node_modules/
|
24 |
+
.env
|
25 |
+
|
26 |
+
# IDE files
|
27 |
+
.vscode/
|
28 |
+
.idea/
|
29 |
+
*.swp
|
30 |
+
*.swo
|
31 |
+
|
32 |
+
# Temporary files
|
33 |
+
*.tmp
|
34 |
+
*.temp
|
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
colorFrom: purple
|
5 |
colorTo: pink
|
6 |
sdk: static
|
@@ -8,85 +8,123 @@ pinned: false
|
|
8 |
license: mit
|
9 |
---
|
10 |
|
11 |
-
#
|
12 |
|
13 |
-
A
|
14 |
|
15 |
## π Features
|
16 |
|
17 |
-
### Core
|
18 |
-
- **
|
19 |
-
- **
|
20 |
-
- **
|
21 |
-
- **Artist Information**:
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
## π Technology Stack
|
39 |
|
40 |
- **Frontend**: Vanilla JavaScript (ES6+), CSS Grid/Flexbox, HTML5
|
41 |
-
- **
|
42 |
-
- **
|
43 |
-
- **
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
-
##
|
46 |
-
|
47 |
-
Simply open the application and start searching for your favorite songs! The app will:
|
48 |
-
1. Fetch lyrics from multiple sources with fallback systems
|
49 |
-
2. Display comprehensive metadata and artist information
|
50 |
-
3. Show high-quality album artwork
|
51 |
-
4. Provide auto-complete suggestions as you type
|
52 |
-
5. Allow you to save favorites and download lyrics
|
53 |
|
54 |
-
|
|
|
|
|
|
|
|
|
55 |
|
56 |
-
|
57 |
-
- **Lyrics.ovh**: Primary lyrics source
|
58 |
-
- **MusicBrainz**: Metadata and artist information
|
59 |
-
- **Cover Art Archive**: High-quality album artwork
|
60 |
-
- **Last.fm**: Artist bio and additional metadata
|
61 |
-
- **iTunes**: Fallback for metadata and artwork
|
62 |
|
63 |
-
|
|
|
64 |
|
65 |
-
|
66 |
-
|
67 |
-
- **Desktop-Perfect**: Full-featured desktop interface
|
68 |
-
- **Cross-Browser**: Works on all modern browsers
|
69 |
|
70 |
-
|
|
|
71 |
|
72 |
-
|
73 |
-
|
74 |
-
- Modern typography with proper visual hierarchy
|
75 |
-
- Card-based layouts with subtle shadows and effects
|
76 |
-
- Intuitive navigation and clear information hierarchy
|
77 |
|
78 |
-
##
|
79 |
|
80 |
-
- **
|
81 |
-
- **
|
82 |
-
- **
|
83 |
-
- **
|
84 |
-
- **
|
85 |
|
86 |
-
##
|
87 |
|
88 |
-
|
|
|
|
|
|
|
|
|
89 |
|
90 |
---
|
91 |
|
92 |
-
**
|
|
|
|
|
|
1 |
---
|
2 |
+
title: AI-Powered Music Discovery Platform
|
3 |
+
emoji: π€π΅
|
4 |
colorFrom: purple
|
5 |
colorTo: pink
|
6 |
sdk: static
|
|
|
8 |
license: mit
|
9 |
---
|
10 |
|
11 |
+
# π€π΅ AI-Powered Music Discovery Platform
|
12 |
|
13 |
+
A cutting-edge web application that combines traditional music search with 8 advanced AI features powered by Hugging Face LLM capabilities for intelligent music discovery and analysis.
|
14 |
|
15 |
## π Features
|
16 |
|
17 |
+
### π΅ Core Music Features
|
18 |
+
- **Advanced Music Search**: Artist and song search with smart autocomplete
|
19 |
+
- **Full Lyrics Display**: Complete lyrics with beautiful formatting
|
20 |
+
- **Rich Metadata**: Album artwork, duration, release date, genres, BPM
|
21 |
+
- **Artist Information**: Biography, discography, and social links
|
22 |
+
- **Favorites Management**: Save and organize your favorite tracks
|
23 |
+
- **Export Options**: Download lyrics and data in multiple formats
|
24 |
+
|
25 |
+
### π€ 8 AI-Powered Discovery Features
|
26 |
+
|
27 |
+
1. **π Generate Similar Playlist** - AI creates 10-15 song playlists with detailed explanations
|
28 |
+
2. **π― Song Recommendations** - Get 5 similar tracks with intelligent reasoning
|
29 |
+
3. **π Analyze Song Meaning** - Deep lyrical interpretation and thematic analysis
|
30 |
+
4. **π― Find Audio Twins** - Discover songs with similar sound and production
|
31 |
+
5. **π€οΈ Musical Journey** - Generate progression paths between any two songs
|
32 |
+
6. **π³ Explore Artist Influences** - Map musical influences and artistic lineage
|
33 |
+
7. **π Mood & Vibe Analysis** - Understand emotional characteristics and contexts
|
34 |
+
8. **π Genre Evolution** - See how songs fit in genre development timelines
|
35 |
+
|
36 |
+
### π§ Advanced AI Features
|
37 |
+
- **Streaming AI Responses**: Real-time text generation with typing animations
|
38 |
+
- **Conversation Memory**: Ask follow-up questions and maintain context
|
39 |
+
- **Context-Rich Analysis**: AI uses lyrics, metadata, and artist info for insights
|
40 |
+
- **Export AI Content**: Save playlists and analyses as PDF, JSON, or TXT
|
41 |
+
- **Two-Song Journey**: Connect any two songs with AI-generated musical progression
|
42 |
+
- **Custom Questions**: Ask personalized questions about any song or artist
|
43 |
|
44 |
## π Technology Stack
|
45 |
|
46 |
- **Frontend**: Vanilla JavaScript (ES6+), CSS Grid/Flexbox, HTML5
|
47 |
+
- **AI Integration**: Hugging Face Inference API with Mistral-7B-Instruct model
|
48 |
+
- **Music APIs**: Lyrics.ovh, MusicBrainz, Cover Art Archive, Last.fm, iTunes
|
49 |
+
- **Storage**: Local Storage for preferences, favorites, and conversation history
|
50 |
+
- **Design**: Modern CSS with smooth animations and responsive layout
|
51 |
+
|
52 |
+
## π Setup Instructions
|
53 |
+
|
54 |
+
### 1. Get Your Hugging Face API Key
|
55 |
+
1. Visit [Hugging Face](https://huggingface.co/settings/tokens)
|
56 |
+
2. Create a new access token with "Read" permissions
|
57 |
+
3. Copy your token for use in the app
|
58 |
+
|
59 |
+
### 2. Configure the Application
|
60 |
+
1. Open the application
|
61 |
+
2. Click the **Settings** (βοΈ) button in the top-right corner
|
62 |
+
3. Paste your Hugging Face API key
|
63 |
+
4. Click "Test Connection" to verify it works
|
64 |
+
5. Save your settings
|
65 |
+
|
66 |
+
### 3. Start Discovering Music!
|
67 |
+
1. Search for any artist and song
|
68 |
+
2. View the comprehensive music information
|
69 |
+
3. Click any of the 8 AI feature buttons to get intelligent insights
|
70 |
+
4. Ask follow-up questions in the chat interface
|
71 |
+
5. Export your favorite analyses and playlists
|
72 |
+
|
73 |
+
## π¨ User Interface
|
74 |
+
|
75 |
+
### Modern AI-Native Design
|
76 |
+
- **Sophisticated Dark Theme**: Purple AI accents with elegant color palette
|
77 |
+
- **Responsive Layout**: Perfect experience on desktop, tablet, and mobile
|
78 |
+
- **Smooth Animations**: Typing effects, hover transitions, loading states
|
79 |
+
- **Intuitive Navigation**: Clear workflow from search to AI analysis to export
|
80 |
+
- **Professional Styling**: Clean typography and visual hierarchy
|
81 |
+
|
82 |
+
### AI Interaction Experience
|
83 |
+
- **Real-Time Streaming**: Watch AI responses generate in real-time
|
84 |
+
- **Conversation Flow**: Natural follow-up questions and context retention
|
85 |
+
- **Visual Feedback**: Loading states, progress indicators, and status updates
|
86 |
+
- **Export Everything**: Save insights in your preferred format
|
87 |
|
88 |
+
## π Privacy & Performance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
|
90 |
+
- **Local Storage Only**: All user data and preferences stored locally
|
91 |
+
- **No Tracking**: No user analytics or data collection
|
92 |
+
- **Secure API Usage**: Your Hugging Face key is stored securely in your browser
|
93 |
+
- **Smart Caching**: AI responses and music data cached for faster performance
|
94 |
+
- **Rate Limiting**: Intelligent API usage to prevent quota exhaustion
|
95 |
|
96 |
+
## π Advanced Features
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
+
### Two-Song Musical Journey
|
99 |
+
Select any two songs and let AI create a musical progression path explaining how to get from one to the other through genre, mood, and stylistic evolution.
|
100 |
|
101 |
+
### Batch Analysis
|
102 |
+
Analyze multiple songs simultaneously and compare AI insights across your music collection.
|
|
|
|
|
103 |
|
104 |
+
### Conversation History
|
105 |
+
All your AI interactions are saved locally. Return to previous conversations and continue exploring musical insights.
|
106 |
|
107 |
+
### Custom Prompts
|
108 |
+
Beyond the 8 preset features, ask any custom question about songs, artists, or musical concepts.
|
|
|
|
|
|
|
109 |
|
110 |
+
## π― Perfect For
|
111 |
|
112 |
+
- **Music Enthusiasts**: Discover new music through AI-powered recommendations
|
113 |
+
- **Musicians & Producers**: Understand musical influences and production techniques
|
114 |
+
- **Researchers**: Analyze musical trends and genre evolution
|
115 |
+
- **Educators**: Teach music history and theory with AI assistance
|
116 |
+
- **Playlist Curators**: Create intelligent, themed playlists with explanations
|
117 |
|
118 |
+
## π§ Technical Details
|
119 |
|
120 |
+
- **Single HTML File**: Complete application with embedded CSS and JavaScript
|
121 |
+
- **No Build Process**: Open directly in any modern web browser
|
122 |
+
- **Cross-Browser Compatible**: Works on Chrome, Firefox, Safari, Edge
|
123 |
+
- **Mobile Optimized**: Full functionality on smartphones and tablets
|
124 |
+
- **Accessibility**: Keyboard navigation and screen reader support
|
125 |
|
126 |
---
|
127 |
|
128 |
+
**Experience the future of music discovery with AI-powered insights and analysis!** π΅β¨
|
129 |
+
|
130 |
+
Built with cutting-edge technology: Hugging Face AI + Traditional Music APIs = Revolutionary Music Discovery
|
index.html
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
requirements.txt
CHANGED
@@ -1,3 +1,13 @@
|
|
1 |
-
# This is a static HTML application
|
2 |
# No Python dependencies required
|
3 |
-
# The application runs entirely in the browser using vanilla JavaScript
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This is a static HTML application with AI capabilities
|
2 |
# No Python dependencies required
|
3 |
+
# The application runs entirely in the browser using vanilla JavaScript
|
4 |
+
|
5 |
+
# REQUIREMENTS FOR AI FEATURES:
|
6 |
+
# - Hugging Face API key (free tier available)
|
7 |
+
# - Modern web browser with JavaScript enabled
|
8 |
+
# - Internet connection for API calls
|
9 |
+
|
10 |
+
# Setup Instructions:
|
11 |
+
# 1. Get free Hugging Face API key from: https://huggingface.co/settings/tokens
|
12 |
+
# 2. Open the application and enter your API key in Settings
|
13 |
+
# 3. All AI features will be enabled automatically
|