Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def chat_with_bot_stream(user_input):
|
|
| 16 |
if len(conversation_history) == 1:
|
| 17 |
conversation_history.insert(0, {
|
| 18 |
"role": "system",
|
| 19 |
-
"content": "You are a music and genre recommendation bot designed to help users discover new music based on their preferences, mood, or activity.\n\nYour responses should be engaging, personalized, and insightful. You can recommend:\n\n-Specific songs, albums, or artists\n-Genres based on mood, activity, or past preferences\n-Hidden gems and deep cuts for music enthusiasts\n-Trending or classic hits based on user taste\n\nBe conversational, suggest multiple options when possible, and encourage users to explore new sounds. If requested, provide brief descriptions of artists or genres, and explain why a recommendation might suit the user."
|
| 20 |
})
|
| 21 |
|
| 22 |
completion = client.chat.completions.create(
|
|
@@ -68,7 +68,7 @@ TITLE = """
|
|
| 68 |
<style>
|
| 69 |
h1 { text-align: center; font-size: 24px; margin-bottom: 10px; }
|
| 70 |
</style>
|
| 71 |
-
<h1
|
| 72 |
"""
|
| 73 |
|
| 74 |
with gr.Blocks(theme=gr.themes.Glass(primary_hue="violet", secondary_hue="violet", neutral_hue="stone")) as demo:
|
|
|
|
| 16 |
if len(conversation_history) == 1:
|
| 17 |
conversation_history.insert(0, {
|
| 18 |
"role": "system",
|
| 19 |
+
"content": "You are a music and genre recommendation bot designed to help users discover new music based on their preferences, mood, or activity.\n\nYour responses should be engaging, personalized, and insightful. You can recommend:\n\n-Specific songs, albums, or artists\n-Genres based on mood, activity, or past preferences\n-Hidden gems and deep cuts for music enthusiasts\n-Trending or classic hits based on user taste\n\nBe conversational, suggest multiple options when possible, and encourage users to explore new sounds. If requested, provide brief descriptions of artists or genres, and explain why a recommendation might suit the user. Also use a wide range of simple vocabulary and don't just keep repeating the same sentence"
|
| 20 |
})
|
| 21 |
|
| 22 |
completion = client.chat.completions.create(
|
|
|
|
| 68 |
<style>
|
| 69 |
h1 { text-align: center; font-size: 24px; margin-bottom: 10px; }
|
| 70 |
</style>
|
| 71 |
+
<h1>🎵 Musify</h1>
|
| 72 |
"""
|
| 73 |
|
| 74 |
with gr.Blocks(theme=gr.themes.Glass(primary_hue="violet", secondary_hue="violet", neutral_hue="stone")) as demo:
|