ysharma HF staff commited on
Commit
5ce127f
·
1 Parent(s): cc201b9
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -97,10 +97,10 @@ def display_vid(url, question, sample_question=None, example_video=None):
97
  #input - question and transcript, output - answer timestamp
98
  ans_timestamp, ans_timestamp_secondbest = get_answers_timestamp(question, final_transcript, transcript)
99
 
100
- #created embedding
101
- html_out = "<iframe width='560' height='315' src='https://www.youtube.com/embed/" + video_id + "?start=" + str(ans_timestamp) + "' title='YouTube video player' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>"
102
  print(f"html output is : {html_out}")
103
- html_out_secondbest = "<iframe width='560' height='315' src='https://www.youtube.com/embed/" + video_id + "?start=" + str(ans_timestamp) + "' title='YouTube video player' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>"
104
 
105
  if question == '':
106
  print(f"Inside display_vid(), Sample_Question coming from Radio box is BEFORE : {sample_question}")
 
97
  #input - question and transcript, output - answer timestamp
98
  ans_timestamp, ans_timestamp_secondbest = get_answers_timestamp(question, final_transcript, transcript)
99
 
100
+ #created embedding width='560' height='315'
101
+ html_out = "<iframe width='600' height='400' src='https://www.youtube.com/embed/" + video_id + "?start=" + str(ans_timestamp) + "' title='YouTube video player' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>"
102
  print(f"html output is : {html_out}")
103
+ html_out_secondbest = "<iframe width='600' height='400' src='https://www.youtube.com/embed/" + video_id + "?start=" + str(ans_timestamp_secondbest) + "' title='YouTube video player' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>"
104
 
105
  if question == '':
106
  print(f"Inside display_vid(), Sample_Question coming from Radio box is BEFORE : {sample_question}")