mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fix requests connection error during modelcard creation (#26518)
fix requests connection error Co-authored-by: Jan Philipp Harries <jphme@users.noreply.github.com>
This commit is contained in:
parent
ca0379b8c8
commit
7d77d7f79c
@ -387,7 +387,7 @@ class TrainingSummary:
|
||||
for tag in info.tags:
|
||||
if tag.startswith("license:"):
|
||||
self.license = tag[8:]
|
||||
except (requests.exceptions.HTTPError, HFValidationError):
|
||||
except (requests.exceptions.HTTPError, requests.exceptions.ConnectionError, HFValidationError):
|
||||
pass
|
||||
|
||||
def create_model_index(self, metric_mapping):
|
||||
|
Loading…
Reference in New Issue
Block a user