storresbusquets commited on
Commit
36ef4da
·
1 Parent(s): 8c1021f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -86,12 +86,13 @@ with block as demo:
86
  title = gr.Label(label="Video Title")
87
  with gr.Row().style(equal_height=True):
88
  img = gr.Image(label="Thumbnail")
89
- text = gr.Textbox(label="Transcription", placeholder="Transcription Output", lines=10).style(show_copy_button=True, container=False)
90
  with gr.Row().style(equal_height=True):
91
- summary = gr.Textbox(label="Summary", placeholder="Summary Output", lines=5).style(show_copy_button=True, container=False)
92
- keywords = gr.Textbox(label="Keywords", placeholder="Keywords Output", lines=5).style(show_copy_button=True, container=False)
93
  label = gr.Label(label="Sentiment Analysis")
94
  with gr.Row().style(equal_height=True):
 
95
  btn = gr.Button("Get video insights") # Updated button label
96
  btn.click(gio, inputs=[link, lang, size], outputs=[text, summary, keywords, label])
97
  link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
@@ -109,6 +110,7 @@ with block as demo:
109
  # summary = gr.Textbox(label="Summary", placeholder="Summary Output", lines=5)
110
  # keywords = gr.Textbox(label="Keywords", placeholder="Keywords Output", lines=5)
111
  with gr.Row().style(equal_height=True):
 
112
  btn = gr.Button("Get video insights") # Updated button label
113
  btn.click(transcribe_audio, inputs=[audio_file], outputs=[text])
114
  # link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])
 
86
  title = gr.Label(label="Video Title")
87
  with gr.Row().style(equal_height=True):
88
  img = gr.Image(label="Thumbnail")
89
+ text = gr.Textbox(label="Transcription", placeholder="Transcription Output", lines=10).style(show_copy_button=True, container=True)
90
  with gr.Row().style(equal_height=True):
91
+ summary = gr.Textbox(label="Summary", placeholder="Summary Output", lines=5).style(show_copy_button=True, container=True)
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(size, lang, link, title, img, text, summary, keywords, label)
96
  btn = gr.Button("Get video insights") # 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])
 
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(size, lang, text)
114
  btn = gr.Button("Get video insights") # Updated button label
115
  btn.click(transcribe_audio, inputs=[audio_file], outputs=[text])
116
  # link.change(gio.populate_metadata, inputs=[link], outputs=[img, title])