From a425907eba6d80e2a3e9df2f08a091ab9bbc40f8 Mon Sep 17 00:00:00 2001 From: npnpatidar <7de6dkm1@duck.com> Date: Mon, 7 Oct 2024 20:10:11 +0530 Subject: [PATCH] sleep for 10 seconds before calling api to work around rate limit --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 2b583783..1efd2f44 100644 --- a/main.py +++ b/main.py @@ -38,6 +38,8 @@ def fetch_article_text(url): def summarise(article_text): + #wait for 10 seconds + time.sleep(10) load_dotenv()