somya-27-04-03 commited on
Commit
c27d4ee
Ā·
verified Ā·
1 Parent(s): 641002d

Upload 3 files

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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="Detect your emotion via webcam and get song recommendations instantly šŸ’–"
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__":