Skip to content

Commit b825a2c

Browse files
committed
fix: add timeout for download from gcs
1 parent 1ec283c commit b825a2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fastembed/common/model_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def download_file_from_gcs(cls, url: str, output_path: str, show_progress: bool
9999

100100
if os.path.exists(output_path):
101101
return output_path
102-
response = requests.get(url, stream=True)
102+
response = requests.get(url, stream=True, timeout=(10, 120))
103103

104104
# Handle HTTP errors
105105
if response.status_code == 403:

0 commit comments

Comments
 (0)