cfc-tech commited on
Commit
a98c80e
·
verified ·
1 Parent(s): f5d0144
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -32,12 +32,10 @@ def summarize_video_url(video_url):
32
  summary = summarize_transcript(transcript)
33
  return summary
34
 
35
- input = gr.inputs.Textbox(label="Enter YouTube Video URL")
36
  output = gr.outputs.Textbox(label="Summary")
37
 
38
  title = "YouTube Video Transcription Summarizer"
39
  description = "Enter a YouTube Video URL to get a summary of its transcript."
40
 
41
- iface = gr.Interface(fn=summarize_video_url, inputs=input, outputs=output, title=title, description=description)
42
-
43
- iface.launch(share=True)
 
32
  summary = summarize_transcript(transcript)
33
  return summary
34
 
35
+ inputs = gr.inputs.Textbox(lines=5, label="Enter YouTube Video URL")
36
  output = gr.outputs.Textbox(label="Summary")
37
 
38
  title = "YouTube Video Transcription Summarizer"
39
  description = "Enter a YouTube Video URL to get a summary of its transcript."
40
 
41
+ gr.Interface(fn=summarize_video_url, inputs=inputs, outputs=output, title=title, description=description).launch()