mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-07 06:06:20 -04:00
Reduce the timeout for downloading web pages
This commit is contained in:
parent
3eb0b77427
commit
7080a02252
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ def get_current_timestamp():
|
|||
return datetime.now().strftime('%b %d, %Y %H:%M')
|
||||
|
||||
|
||||
def download_web_page(url, timeout=10):
|
||||
def download_web_page(url, timeout=5):
|
||||
"""Download and extract text from a web page"""
|
||||
try:
|
||||
headers = {
|
||||
|
|
Loading…
Add table
Reference in a new issue