bharat-raghunathan commited on
Commit
8fb72b7
1 Parent(s): 736c541

Update gradio APIs for I/O components

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.inputs.Textbox(lines=20, placeholder="Enter song lyrics here...", label="Song Lyrics"),
25
- outputs=gr.outputs.Label(num_top_classes=5, label="Genres/Categories"),
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",