DebasishDhal99 commited on
Commit
8cc72fc
1 Parent(s): ced6416

Updating the mismatch function to show the mismatched videos with their playlists

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -41,7 +41,10 @@ mismatch_outputs = gr.outputs.Textbox(label="Mismatch between two playlists")
41
 
42
  def playlist_mismatch_calculator(playlist_link_1, playlist_link_2):
43
  result = playlists_mismatch_func(playlist_link_1, playlist_link_2, output='name')
44
- return f"Mismatch Result: {result}"
 
 
 
45
 
46
  playlist_link_1_input = gr.inputs.Textbox(label="Playlist Link 1")
47
  playlist_link_2_input = gr.inputs.Textbox(label="Playlist Link 2")
 
41
 
42
  def playlist_mismatch_calculator(playlist_link_1, playlist_link_2):
43
  result = playlists_mismatch_func(playlist_link_1, playlist_link_2, output='name')
44
+ playlist1name = result[2]
45
+ playlist2name = result[3]
46
+ text = 'Present in {}, not in {} :- \n {} \n Present in {}, not in {} :- {}'.format(result[2],result[3], result[0], result[3], result[2], result[1])
47
+ return f"Mismatch Result: {text}"
48
 
49
  playlist_link_1_input = gr.inputs.Textbox(label="Playlist Link 1")
50
  playlist_link_2_input = gr.inputs.Textbox(label="Playlist Link 2")