storresbusquets commited on
Commit
9db221b
·
1 Parent(s): e6419e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -92,8 +92,8 @@ with block as demo:
92
  keywords = gr.Textbox(label="Keywords", placeholder="Keywords Output", lines=5).style(show_copy_button=True, container=True)
93
  label = gr.Label(label="Sentiment Analysis")
94
  with gr.Row().style(equal_height=True):
95
- clear = gr.ClearButton([link, title, img, text, summary, keywords, label], scale=0)
96
- btn = gr.Button("Get video insights", variant='primary', scale=0) # Updated button label
97
  btn.click(gio, inputs=[link, lang, size], outputs=[text, summary, keywords, label])
98
  link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
99
 
@@ -110,18 +110,18 @@ with block as demo:
110
  # summary = gr.Textbox(label="Summary", placeholder="Summary Output", lines=5)
111
  # keywords = gr.Textbox(label="Keywords", placeholder="Keywords Output", lines=5)
112
  with gr.Row().style(equal_height=True):
113
- clear = gr.ClearButton([text], scale=0)
114
- btn = gr.Button("Get video insights", variant='primary', scale=0) # Updated button label
115
  btn.click(transcribe_audio, inputs=[audio_file], outputs=[text])
116
  # link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
117
 
118
  with block:
119
  gr.Markdown("About the app:")
120
 
121
- with gr.Accordion("What is YouTube Insights?"):
122
  gr.Markdown("YouTube Insights is a tool developed with academic purposes only, that creates summaries, keywords and sentiments analysis based on YouTube videos or user audio files.")
123
 
124
- with gr.Accordion("How does it work?"):
125
  gr.Markdown("Works by using OpenAI's Whisper, DistilBART for summarization and VoiceLabT5 for Keyword Extraction.")
126
 
127
  gr.HTML("""
 
92
  keywords = gr.Textbox(label="Keywords", placeholder="Keywords Output", lines=5).style(show_copy_button=True, container=True)
93
  label = gr.Label(label="Sentiment Analysis")
94
  with gr.Row().style(equal_height=True):
95
+ clear = gr.ClearButton([link, title, img, text, summary, keywords, label], scale=1)
96
+ btn = gr.Button("Get video insights", variant='primary', scale=1)
97
  btn.click(gio, inputs=[link, lang, size], outputs=[text, summary, keywords, label])
98
  link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
99
 
 
110
  # summary = gr.Textbox(label="Summary", placeholder="Summary Output", lines=5)
111
  # keywords = gr.Textbox(label="Keywords", placeholder="Keywords Output", lines=5)
112
  with gr.Row().style(equal_height=True):
113
+ clear = gr.ClearButton([text], scale=1)
114
+ btn = gr.Button("Get video insights", variant='primary', scale=1) # Updated button label
115
  btn.click(transcribe_audio, inputs=[audio_file], outputs=[text])
116
  # link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
117
 
118
  with block:
119
  gr.Markdown("About the app:")
120
 
121
+ with gr.Accordion("What is YouTube Insights?", open=False):
122
  gr.Markdown("YouTube Insights is a tool developed with academic purposes only, that creates summaries, keywords and sentiments analysis based on YouTube videos or user audio files.")
123
 
124
+ with gr.Accordion("How does it work?", open=False):
125
  gr.Markdown("Works by using OpenAI's Whisper, DistilBART for summarization and VoiceLabT5 for Keyword Extraction.")
126
 
127
  gr.HTML("""