helliun commited on
Commit
42cd37c
1 Parent(s): 83c249a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -232,19 +232,22 @@ with gr.Blocks(theme=theme) as app:
232
  songs_df = pd.DataFrame(columns=['elo_score', 'artist', 'song_title'])
233
  rankings = gr.DataFrame(value=songs_df, interactive=False, headers=["Score","Artist", "Song"])
234
 
235
-
 
 
 
236
  with gr.Row():
237
- artist_input = gr.Textbox(label="Artist")
238
- song_title_input = gr.Textbox(label="Song Title")
239
- add_button = gr.Button("Add Song")
240
  add_button.click(add_and_compare, inputs=[artist_input, song_title_input, rankings], outputs=[artist_input, song_title_input, rankings])
241
  gr.Markdown(
242
- """### Remove Songs
243
  """
244
  )
245
  with gr.Row():
246
- remove_artist_input = gr.Textbox(label="Artist")
247
- remove_song_title_input = gr.Textbox(label="Song Title")
248
  remove_button = gr.Button("Remove Song")
249
  remove_button.click(remove_song, inputs=[remove_artist_input, remove_song_title_input, rankings], outputs=rankings)
250
 
 
232
  songs_df = pd.DataFrame(columns=['elo_score', 'artist', 'song_title'])
233
  rankings = gr.DataFrame(value=songs_df, interactive=False, headers=["Score","Artist", "Song"])
234
 
235
+ gr.Markdown(
236
+ """### Add Opponents
237
+ """
238
+ )
239
  with gr.Row():
240
+ artist_input = gr.Textbox(label="Type")
241
+ song_title_input = gr.Textbox(label="Opponent")
242
+ add_button = gr.Button("Add Opponent")
243
  add_button.click(add_and_compare, inputs=[artist_input, song_title_input, rankings], outputs=[artist_input, song_title_input, rankings])
244
  gr.Markdown(
245
+ """### Remove Opponents
246
  """
247
  )
248
  with gr.Row():
249
+ remove_artist_input = gr.Textbox(label="Type")
250
+ remove_song_title_input = gr.Textbox(label="Opponent")
251
  remove_button = gr.Button("Remove Song")
252
  remove_button.click(remove_song, inputs=[remove_artist_input, remove_song_title_input, rankings], outputs=rankings)
253