ammaan commited on
Commit
0b5fbcc
·
verified ·
1 Parent(s): 891fb1e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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=1200)
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: