Spaces:
Build error
Build error
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='
|
102 |
print(f"html output is : {html_out}")
|
103 |
-
html_out_secondbest = "<iframe width='
|
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}")
|