ysharma HF staff commited on
Commit
92daced
1 Parent(s): 7ce24a5
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -49,7 +49,11 @@ def generate_gifs(gif_transcript, words, words_timestamp):
49
  giflist = gif.split()
50
 
51
  #getting gif indexes from the generator
 
 
52
  print(f"haystack and needle function returns value as : {list(get_gif_word_indexes(words, giflist))}")
 
 
53
  giflist_indxs = list(list(get_gif_word_indexes(words, giflist))[0])
54
 
55
  #getting start and end timestamps for a gif video
 
49
  giflist = gif.split()
50
 
51
  #getting gif indexes from the generator
52
+ print(f"words is :{words}")
53
+ print(f"giflist is :{giflist}")
54
  print(f"haystack and needle function returns value as : {list(get_gif_word_indexes(words, giflist))}")
55
+ indx_tmp = [num for num in get_gif_word_indexes(words, giflist)]
56
+ print(f"index temp is : {indx_tmp}")
57
  giflist_indxs = list(list(get_gif_word_indexes(words, giflist))[0])
58
 
59
  #getting start and end timestamps for a gif video