youngtsai commited on
Commit
bedad3b
1 Parent(s): f4b5a4c

get_video_id

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -704,6 +704,9 @@ def prev_slide():
704
  def next_slide():
705
  return update_slide(1)
706
 
 
 
 
707
  with gr.Blocks() as demo:
708
  with gr.Row():
709
  with gr.Column():
@@ -747,7 +750,7 @@ with gr.Blocks() as demo:
747
  btn_2.click(respond, inputs=[btn_2, df_string_output, chatbot], outputs=[msg, chatbot])
748
  btn_3.click(respond, inputs=[btn_3, df_string_output, chatbot], outputs=[msg, chatbot])
749
 
750
- btn_create_question.click(get_questions, inputs = [VIDEO_ID, df_string_output], outputs = [btn_1, btn_2, btn_3])
751
 
752
  # file_upload.change(process_file, inputs=file_upload, outputs=df_string_output)
753
  file_upload.change(process_file, inputs=file_upload, outputs=[btn_1, btn_2, btn_3, df_summarise, df_string_output])
 
704
  def next_slide():
705
  return update_slide(1)
706
 
707
+ def get_video_id():
708
+ return VIDEO_ID
709
+
710
  with gr.Blocks() as demo:
711
  with gr.Row():
712
  with gr.Column():
 
750
  btn_2.click(respond, inputs=[btn_2, df_string_output, chatbot], outputs=[msg, chatbot])
751
  btn_3.click(respond, inputs=[btn_3, df_string_output, chatbot], outputs=[msg, chatbot])
752
 
753
+ btn_create_question.click(get_questions, inputs = [get_video_id, df_string_output], outputs = [btn_1, btn_2, btn_3])
754
 
755
  # file_upload.change(process_file, inputs=file_upload, outputs=df_string_output)
756
  file_upload.change(process_file, inputs=file_upload, outputs=[btn_1, btn_2, btn_3, df_summarise, df_string_output])