Upload 3 files
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
|
|
|
4 |
YOUTUBE_API_KEY = "AIzaSyCEZFjFEuqBsFDi0CV12BkFJgGl7Lo6qkQ"
|
5 |
|
6 |
def recommend_music(emotion):
|
@@ -30,7 +31,7 @@ iface = gr.Interface(
|
|
30 |
inputs=gr.Textbox(label="Detected Emotion"),
|
31 |
outputs=gr.HTML(label="Recommended Songs"),
|
32 |
title="š¶ Mood Based Music Recommender",
|
33 |
-
description="
|
34 |
)
|
35 |
|
36 |
if __name__ == "__main__":
|
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
|
4 |
+
# ā
Your YouTube API key
|
5 |
YOUTUBE_API_KEY = "AIzaSyCEZFjFEuqBsFDi0CV12BkFJgGl7Lo6qkQ"
|
6 |
|
7 |
def recommend_music(emotion):
|
|
|
31 |
inputs=gr.Textbox(label="Detected Emotion"),
|
32 |
outputs=gr.HTML(label="Recommended Songs"),
|
33 |
title="š¶ Mood Based Music Recommender",
|
34 |
+
description="Input your detected emotion from webcam to get song recommendations instantly š"
|
35 |
)
|
36 |
|
37 |
if __name__ == "__main__":
|