Spaces:
Runtime error
Runtime error
owaiskha9654
commited on
Commit
·
abe4bb2
1
Parent(s):
2fbdf6e
Update app.py
Browse files
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 |
-
|
35 |
-
|
|
|
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()
|