We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9de8de commit a45c7c9Copy full SHA for a45c7c9
summarizer.py
@@ -57,8 +57,6 @@ def main():
57
llm_chain = setup_summarization_chain()
58
result = llm_chain.run(docs)
59
60
- print(result)
61
-
62
63
if __name__ == "__main__":
64
main()
yt_summarizer.py
@@ -8,6 +8,7 @@
8
9
10
def check_link(link):
11
+ """The function `check_link` uses a regular expression to check if a given link is a valid YouTube video link."""
12
yt_regex = r"^(?:https?:\/\/)?(?:www\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-\_]+)(?:\?.*)?$"
13
return re.match(yt_regex, link) is not None
14
0 commit comments