Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,10 @@ import torch
|
|
| 6 |
|
| 7 |
theme = gr.themes.Base() # use a simple base theme, we'll add custom CSS
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
theme = gr.themes.Ocean(
|
| 11 |
primary_hue="green",
|
|
@@ -141,5 +145,13 @@ with gr.Blocks(theme=theme, css=gradient_css) as chatbot:
|
|
| 141 |
#width=10000, height=300)
|
| 142 |
with gr.Row(scale=3):
|
| 143 |
gr.ChatInterface(respond, type="messages", title = "AuxAI", theme = theme, description = "Hi! I’m AuxAI, your friendly music recommendation assistant. Tell me your mood, genre, or style and I’ll suggest some songs!", examples=["Give me some jazzy songs to study to", "Give me a playlist of hype songs to workout to", "Give me songs like Espresso by Sabrina Carpenter"],)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
|
| 145 |
chatbot.launch()
|
|
|
|
| 6 |
|
| 7 |
theme = gr.themes.Base() # use a simple base theme, we'll add custom CSS
|
| 8 |
|
| 9 |
+
#spotify code
|
| 10 |
+
spotify_embed_code = """
|
| 11 |
+
<iframe data-testid="embed-iframe" style="border-radius:12px" src="https://open.spotify.com/embed/playlist/0Qc38sGKZeu5wv79Vd3BHT?utm_source=generator" width="100%" height="352" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>
|
| 12 |
+
"""
|
| 13 |
|
| 14 |
theme = gr.themes.Ocean(
|
| 15 |
primary_hue="green",
|
|
|
|
| 145 |
#width=10000, height=300)
|
| 146 |
with gr.Row(scale=3):
|
| 147 |
gr.ChatInterface(respond, type="messages", title = "AuxAI", theme = theme, description = "Hi! I’m AuxAI, your friendly music recommendation assistant. Tell me your mood, genre, or style and I’ll suggest some songs!", examples=["Give me some jazzy songs to study to", "Give me a playlist of hype songs to workout to", "Give me songs like Espresso by Sabrina Carpenter"],)
|
| 148 |
+
#__________________________________________
|
| 149 |
+
#ADD SONG PLAYLIST HERE, EXAMPLE IMAGES, AND LINKS TO RESOURCES
|
| 150 |
+
with gr.Row(scale=1):
|
| 151 |
+
gr.HTML(spotify_embed_code)
|
| 152 |
+
# with gr.Row(scale=1):
|
| 153 |
+
# with gr.Column():
|
| 154 |
+
# resources links here
|
| 155 |
+
#__________________________________________
|
| 156 |
|
| 157 |
chatbot.launch()
|