owaiskha9654 commited on
Commit
aec378a
·
1 Parent(s): bbdb5b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,6 +2,7 @@ from transformers import pipeline
2
  from youtube_transcript_api import YouTubeTranscriptApi
3
  import gradio as gr
4
 
 
5
  def summarize(Youtube_Video_Link):
6
  video_id = Youtube_Video_Link.split("=")[1]
7
  try:
@@ -22,7 +23,6 @@ def summarize(Youtube_Video_Link):
22
  out = out['summary_text']
23
  print("Summarized text\n"+out)
24
  summarized_text.append(out)
25
- # inp = input_text.replace('\n','')
26
  output_text=' '.join(summarized_text)
27
  return output_text
28
  except:
 
2
  from youtube_transcript_api import YouTubeTranscriptApi
3
  import gradio as gr
4
 
5
+
6
  def summarize(Youtube_Video_Link):
7
  video_id = Youtube_Video_Link.split("=")[1]
8
  try:
 
23
  out = out['summary_text']
24
  print("Summarized text\n"+out)
25
  summarized_text.append(out)
 
26
  output_text=' '.join(summarized_text)
27
  return output_text
28
  except: