bharat-raghunathan
commited on
Commit
•
8fb72b7
1
Parent(s):
736c541
Update gradio APIs for I/O components
Browse files
app.py
CHANGED
@@ -21,8 +21,8 @@ def lyrics_categories(input_text):
|
|
21 |
description = "With lyrics, find the top 5 genres this song belongs to! (Powered by Spotify)"
|
22 |
|
23 |
iface = gr.Interface(fn=lyrics_categories,
|
24 |
-
inputs=gr.
|
25 |
-
outputs=gr.
|
26 |
examples=[stairway, numb, puppets, firework, yellow],
|
27 |
article=description,
|
28 |
title="Song Genre Predictor",
|
|
|
21 |
description = "With lyrics, find the top 5 genres this song belongs to! (Powered by Spotify)"
|
22 |
|
23 |
iface = gr.Interface(fn=lyrics_categories,
|
24 |
+
inputs=gr.Textbox(lines=20, placeholder="Enter song lyrics here...", label="Song Lyrics"),
|
25 |
+
outputs=gr.Label(num_top_classes=5, label="Genres/Categories"),
|
26 |
examples=[stairway, numb, puppets, firework, yellow],
|
27 |
article=description,
|
28 |
title="Song Genre Predictor",
|