Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ pipe = pipeline("summarization", model="Falconsai/text_summarization", device=-1
|
|
10 |
def chunk_length(text, max_length = 1024):
|
11 |
words = text.split()
|
12 |
for i in range(0, len(words), max_length):
|
13 |
-
|
14 |
|
15 |
def extract_youtube_id(url):
|
16 |
"""
|
|
|
10 |
def chunk_length(text, max_length = 1024):
|
11 |
words = text.split()
|
12 |
for i in range(0, len(words), max_length):
|
13 |
+
yield " ".join(words[i:i + max_length])
|
14 |
|
15 |
def extract_youtube_id(url):
|
16 |
"""
|