owaiskha9654 commited on
Commit
abe4bb2
·
1 Parent(s): 2fbdf6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,5 +1,6 @@
1
  from transformers import pipeline
2
  from youtube_transcript_api import YouTubeTranscriptApi
 
3
 
4
  def summarize(youtube_video):
5
 
@@ -28,8 +29,6 @@ def summarize(youtube_video):
28
  inp = result.replace('\n','')
29
  summary = summarizer(inp)
30
  return summary
31
-
32
- import gradio as gr
33
 
34
- grad= gr.Interface(fn=summarize, inputs="text", outputs="text")
35
- grad.launch()
 
1
  from transformers import pipeline
2
  from youtube_transcript_api import YouTubeTranscriptApi
3
+ import gradio as gr
4
 
5
  def summarize(youtube_video):
6
 
 
29
  inp = result.replace('\n','')
30
  summary = summarizer(inp)
31
  return summary
 
 
32
 
33
+ App= gr.Interface(fn=summarize, inputs="text", outputs="text")
34
+ App.launch()