Skip to content

Commit

Permalink
sleep for 10 seconds before calling api to work around rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
npnpatidar committed Oct 7, 2024
1 parent 1dfd443 commit a425907
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def fetch_article_text(url):

def summarise(article_text):

#wait for 10 seconds
time.sleep(10)

load_dotenv()

Expand Down

0 comments on commit a425907

Please sign in to comment.