youngtsai commited on
Commit
697d377
1 Parent(s): e1d77be

with gr.Tab("截圖與逐字稿"):

Browse files
Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -511,20 +511,16 @@ with gr.Blocks() as demo:
511
  send_button = gr.Button("Send")
512
 
513
  with gr.Column():
 
 
514
  with gr.Tab("投影片"):
515
-
516
  image = gr.Image()
517
  text = gr.Textbox()
518
  with gr.Row():
519
- prev_button = gr.Button("上一个")
520
- next_button = gr.Button("下一个")
521
-
522
- # 设置按钮的动作
523
  prev_button.click(fn=prev_slide, inputs=[], outputs=[image, text])
524
- next_button.click(fn=next_slide, inputs=[], outputs=[image, text])
525
-
526
- with gr.Tab("YouTube Transcript and Video"):
527
- transcript_html = gr.HTML(label="YouTube Transcript and Video")
528
  with gr.Tab("資料本文"):
529
  df_string_output = gr.Textbox()
530
  with gr.Tab("資料摘要"):
 
511
  send_button = gr.Button("Send")
512
 
513
  with gr.Column():
514
+ with gr.Tab("截圖與逐字稿"):
515
+ transcript_html = gr.HTML(label="YouTube Transcript and Video")
516
  with gr.Tab("投影片"):
 
517
  image = gr.Image()
518
  text = gr.Textbox()
519
  with gr.Row():
520
+ prev_button = gr.Button("Previous")
521
+ next_button = gr.Button("Next")
 
 
522
  prev_button.click(fn=prev_slide, inputs=[], outputs=[image, text])
523
+ next_button.click(fn=next_slide, inputs=[], outputs=[image, text])
 
 
 
524
  with gr.Tab("資料本文"):
525
  df_string_output = gr.Textbox()
526
  with gr.Tab("資料摘要"):