Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -9,10 +9,10 @@ from fastapi.responses import FileResponse
|
|
9 |
|
10 |
app = FastAPI()
|
11 |
|
12 |
-
text_summary = pipeline("summarization", model="Falconsai/text_summarization", max_length=
|
13 |
|
14 |
|
15 |
-
def extract_video_id(url):
|
16 |
regex = r"(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})"
|
17 |
match = re.search(regex, url)
|
18 |
if match:
|
|
|
9 |
|
10 |
app = FastAPI()
|
11 |
|
12 |
+
text_summary = pipeline("summarization", model="Falconsai/text_summarization", max_length=600)
|
13 |
|
14 |
|
15 |
+
def extract_video_id(url) :
|
16 |
regex = r"(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})"
|
17 |
match = re.search(regex, url)
|
18 |
if match:
|