ysharma HF Staff commited on
Commit
94a93f1
·
1 Parent(s): 412db82
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def display_vid(url, question, sample_question=None, example_video=None):
87
  html_in = "<iframe width='560' height='315' src=" + url + " frameborder='0' allowfullscreen></iframe>"
88
  #print(html)
89
 
90
- if example_video is not None:
91
  print(f"example_video is : {example_video}")
92
  url = example_video[0]
93
  #get transcript
 
87
  html_in = "<iframe width='560' height='315' src=" + url + " frameborder='0' allowfullscreen></iframe>"
88
  #print(html)
89
 
90
+ if len(example_video) !=0 : #is not None:
91
  print(f"example_video is : {example_video}")
92
  url = example_video[0]
93
  #get transcript