sjw commited on
Commit
a1ba2f0
ยท
1 Parent(s): ac6bd51

Upload messages.py

Browse files
Files changed (1) hide show
  1. messages.py +122 -0
messages.py ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ SYSTEM_MESSAGE = """
2
+ You are Apollo, an AI music-player assistant, designed to provide a personalized and engaging listening experience through thoughtful interaction and intelligent tool usage.
3
+
4
+ Your Main Responsibilities:
5
+
6
+ 1. **Play Music:** Utilize your specialized toolkit to fulfill music requests.
7
+
8
+ 2. **Mood Monitoring:** Constantly gauge the user's mood and adapt the music accordingly. For example, if the mood shifts from 'Happy' to 'more upbeat,' select 'Energetic' music.
9
+
10
+ 3. **Track and Artist Memory:** Be prepared to recall tracks and/or artists that the user has previously requested.
11
+
12
+ 4. **Provide Guidance:** If the user appears indecisive or unsure about their selection, proactively offer suggestions based on their previous preferences or popular choices within the desired mood or genre.
13
+
14
+ 5. **Seek Clarification:** If a user's request is ambiguous, don't hesitate to ask for more details.
15
+ """
16
+
17
+
18
+ GENRE_LIST = [
19
+ 'acoustic', 'afrobeat', 'alt-rock', 'alternative', 'ambient', 'anime',
20
+ 'black-metal', 'bluegrass', 'blues', 'bossanova', 'brazil', 'breakbeat',
21
+ 'british', 'cantopop', 'chicago-house', 'children', 'chill', 'classical',
22
+ 'club', 'comedy', 'country', 'dance', 'dancehall', 'death-metal',
23
+ 'deep-house', 'detroit-techno', 'disco', 'disney', 'drum-and-bass', 'dub',
24
+ 'dubstep', 'edm', 'electro', 'electronic', 'emo', 'folk', 'forro', 'french',
25
+ 'funk', 'garage', 'german', 'gospel', 'goth', 'grindcore', 'groove',
26
+ 'grunge', 'guitar', 'happy', 'hard-rock', 'hardcore', 'hardstyle',
27
+ 'heavy-metal', 'hip-hop', 'holidays', 'honky-tonk', 'house', 'idm',
28
+ 'indian', 'indie', 'indie-pop', 'industrial', 'iranian', 'j-dance',
29
+ 'j-idol', 'j-pop', 'j-rock', 'jazz', 'k-pop', 'kids', 'latin', 'latino',
30
+ 'malay', 'mandopop', 'metal', 'metal-misc', 'metalcore', 'minimal-techno',
31
+ 'movies', 'mpb', 'new-age', 'new-release', 'opera', 'pagode', 'party',
32
+ 'philippines-opm', 'piano', 'pop', 'pop-film', 'post-dubstep', 'power-pop',
33
+ 'progressive-house', 'psych-rock', 'punk', 'punk-rock', 'r-n-b',
34
+ 'rainy-day', 'reggae', 'reggaeton', 'road-trip', 'rock', 'rock-n-roll',
35
+ 'rockabilly', 'romance', 'sad', 'salsa', 'samba', 'sertanejo', 'show-tunes',
36
+ 'singer-songwriter', 'ska', 'sleep', 'songwriter', 'soul', 'soundtracks',
37
+ 'spanish', 'study', 'summer', 'swedish', 'synth-pop', 'tango', 'techno',
38
+ 'trance', 'trip-hop', 'turkish', 'work-out', 'world-music'
39
+ ]
40
+
41
+
42
+ HTML = """
43
+ <!DOCTYPE html>
44
+ <html lang="en">
45
+ <head>
46
+ <link href="https://fonts.googleapis.com/css2?family=Gruppo&display=swap" rel="stylesheet">
47
+ <style>
48
+ h1.no-shadow {
49
+ font-family: 'Gruppo', sans-serif;
50
+ text-shadow: none !important;
51
+ }
52
+ .hover-item:hover {
53
+ color: #161C32 !important;
54
+ }
55
+ .hover-item a:hover {
56
+ font-size: 105%;
57
+ }
58
+ a {
59
+ color: inherit !important;
60
+ text-decoration: none !important;
61
+ }
62
+ .container {
63
+ position: relative;
64
+ }
65
+ .apollo-gif {
66
+ position: absolute;
67
+ top: 70%;
68
+ right: 3%;
69
+ transform: translateY(-50%);
70
+ }
71
+ .video-link {
72
+ font-size: 14px;
73
+ color: #808080 !important;
74
+ }
75
+ body * {
76
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
77
+ }
78
+ </style>
79
+ </head>
80
+ <body>
81
+ <div class="container" style="text-align: left; margin-top: 50px;">
82
+ <h1 style="color: #161C32; font-size: 56px;">Apollo<sup style="color: #AC83F3;">AI</sup> Music Assistant <a class="video-link" href="https://www.youtube.com/watch?v=fwKukm3qjsk">Overview</a></h1>
83
+ <h2 style="color: #AC83F3; font-size: 26px;">Experience personalized, intelligent music interaction like never before</h2>
84
+ <ul style="list-style-type: none; padding: 12px 0; margin: 0;">
85
+ <li class="hover-item" style="color: #808080; font-size: 26px; padding: 12px 0;"><span style="color: #AC83F3;">1</span> Open your Spotify client</li>
86
+ <li class="hover-item" style="color: #808080; font-size: 26px; padding: 12px 0;"><span style="color: #AC83F3;">2</span> Login to <a href="https://developer.spotify.com">Spotify Developer</a> website</li>
87
+ <li class="hover-item" style="color: #808080; font-size: 26px; padding: 12px 0;"><span style="color: #AC83F3;">3</span> <a href="https://developer.spotify.com/dashboard">Dashboard</a> โ†’ Create app</li>
88
+ <li class="hover-item" style="color: #808080; font-size: 26px; padding: 12px 0; margin-bottom: -12px;"><span style="color: #AC83F3;">4</span> Set Redirect URI to <a href="https://jonaswaller.com">https://jonaswaller.com</a></li>
89
+ <li style="color: #808080; font-size: 20px; padding: 0; margin-top: -12px; text-indent: 28px;">The other fields can be anything</li>
90
+ <li class="hover-item" style="color: #808080; font-size: 26px; padding: 12px 0;"><span style="color: #AC83F3;">5</span> Save โ†’ Settings</li>
91
+ <li class="hover-item" style="color: #808080; font-size: 26px; padding: 12px 0;"><span style="color: #AC83F3;">6</span> Copy your Spotify Client ID</li>
92
+ </ul>
93
+ <img src="file/apollog.gif" class="apollo-gif" width='545'>
94
+ </div>
95
+ </body>
96
+ </html>
97
+ """
98
+
99
+
100
+ COMMANDS_MSG = """
101
+ Welcome! Tell me your **mood** to help me select the best music for you
102
+
103
+ ### <span style="color: #AC83F3;"> ๐Ÿ’ฟ Standard ๐Ÿ’ฟ</span>
104
+ - **Specific Song:** Play Passionfruit
105
+ - **Controls:** Queue, Pause, Resume, Skip
106
+ - **More Info:** Explain this song
107
+ - **Album:** Play the album from Barbie
108
+ - **Playlist:** Play my Shower playlist
109
+
110
+ ### <span style="color: #AC83F3;"> ๐Ÿ’ฟ Mood-Based ๐Ÿ’ฟ</span>
111
+ - **Genre:** I'm happy, play country
112
+ - **Artist:** Play Migos hype songs
113
+ - **Recommendations:** I love Drake and house, recommend songs
114
+ - **Create Playlist:** Make a relaxing playlist of SZA-like songs
115
+ """
116
+
117
+
118
+ ERROR_MSG = """
119
+ Error: Unable to **connect to your Spotify** | Please ensure you followed the above steps correctly
120
+
121
+ Need help? Watch this brief tutorial https://www.youtube.com/watch?v=fwKukm3qjsk&t=211s
122
+ """