storresbusquets commited on
Commit
4faf3df
β€’
1 Parent(s): 6506ca6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -13
app.py CHANGED
@@ -420,7 +420,7 @@ with block as demo:
420
  )
421
  with gr.Group():
422
  with gr.Tab("From YouTube πŸ“Ή"):
423
- # with gr.Box():
424
 
425
  with gr.Row().style(equal_height=True):
426
  size = gr.Dropdown(
@@ -461,12 +461,9 @@ with block as demo:
461
  with gr.Row().style(equal_height=True):
462
  clear = gr.ClearButton(
463
  [link, title, img, text, summary, keywords, label, wordcloud_image],
464
- # scale=1,
465
  value="Clear πŸ—‘οΈ"
466
  )
467
- btn = gr.Button("Get Video Insights πŸ”Ž", variant="primary",
468
- # scale=1
469
- )
470
  btn.click(
471
  gio,
472
  inputs=[link, lang, size],
@@ -475,7 +472,7 @@ with block as demo:
475
  link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
476
 
477
  with gr.Tab("From Audio file πŸŽ™οΈ"):
478
- # with gr.Box():
479
 
480
  with gr.Row().style(equal_height=True):
481
  size = gr.Dropdown(
@@ -504,9 +501,9 @@ with block as demo:
504
  wordcloud_image = gr.Image(label="WordCloud")
505
 
506
  with gr.Row().style(equal_height=True):
507
- clear = gr.ClearButton([audio_file,text, summary, keywords, label, wordcloud_image], scale=1, value="Clear πŸ—‘οΈ")
508
  btn = gr.Button(
509
- "Get Audio Insights πŸ”Ž", variant="primary", scale=1
510
  )
511
  btn.click(
512
  gio.from_audio_input,
@@ -515,7 +512,7 @@ with block as demo:
515
  )
516
 
517
  with gr.Tab("From Article πŸ“‹"):
518
- # with gr.Box():
519
 
520
  with gr.Row().style(equal_height=True):
521
  article = gr.Textbox(
@@ -535,10 +532,10 @@ with block as demo:
535
  wordcloud_image = gr.Image(label="WordCloud")
536
 
537
  with gr.Row().style(equal_height=True):
538
- clear = gr.ClearButton([article, summary, keywords, label, wordcloud_image], scale=1, value="Clear πŸ—‘οΈ")
539
- btn = gr.Button(
540
- "Get Text insights πŸ”Ž", variant="primary", scale=1
541
- )
542
  btn.click(
543
  gio.from_article,
544
  inputs=[article],
 
420
  )
421
  with gr.Group():
422
  with gr.Tab("From YouTube πŸ“Ή"):
423
+ with gr.Box():
424
 
425
  with gr.Row().style(equal_height=True):
426
  size = gr.Dropdown(
 
461
  with gr.Row().style(equal_height=True):
462
  clear = gr.ClearButton(
463
  [link, title, img, text, summary, keywords, label, wordcloud_image],
 
464
  value="Clear πŸ—‘οΈ"
465
  )
466
+ btn = gr.Button("Get Video Insights πŸ”Ž", variant="primary")
 
 
467
  btn.click(
468
  gio,
469
  inputs=[link, lang, size],
 
472
  link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
473
 
474
  with gr.Tab("From Audio file πŸŽ™οΈ"):
475
+ with gr.Box():
476
 
477
  with gr.Row().style(equal_height=True):
478
  size = gr.Dropdown(
 
501
  wordcloud_image = gr.Image(label="WordCloud")
502
 
503
  with gr.Row().style(equal_height=True):
504
+ clear = gr.ClearButton([audio_file,text, summary, keywords, label, wordcloud_image], value="Clear πŸ—‘οΈ")
505
  btn = gr.Button(
506
+ "Get Audio Insights πŸ”Ž", variant="primary"
507
  )
508
  btn.click(
509
  gio.from_audio_input,
 
512
  )
513
 
514
  with gr.Tab("From Article πŸ“‹"):
515
+ with gr.Box():
516
 
517
  with gr.Row().style(equal_height=True):
518
  article = gr.Textbox(
 
532
  wordcloud_image = gr.Image(label="WordCloud")
533
 
534
  with gr.Row().style(equal_height=True):
535
+ with gr.Box():
536
+ clear = gr.ClearButton([article, summary, keywords, label, wordcloud_image], value="Clear πŸ—‘οΈ")
537
+ btn = gr.Button(
538
+ "Get Text insights πŸ”Ž", variant="primary")
539
  btn.click(
540
  gio.from_article,
541
  inputs=[article],