diff --git a/summarizer.py b/summarizer.py index 7c6a1c5..dd4a191 100644 --- a/summarizer.py +++ b/summarizer.py @@ -57,8 +57,6 @@ def main(): llm_chain = setup_summarization_chain() result = llm_chain.run(docs) - print(result) - if __name__ == "__main__": main() diff --git a/yt_summarizer.py b/yt_summarizer.py index 8e79620..0f08160 100644 --- a/yt_summarizer.py +++ b/yt_summarizer.py @@ -8,6 +8,7 @@ from langchain_core.prompts import PromptTemplate def check_link(link): + """The function `check_link` uses a regular expression to check if a given link is a valid YouTube video link.""" yt_regex = r"^(?:https?:\/\/)?(?:www\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-\_]+)(?:\?.*)?$" return re.match(yt_regex, link) is not None