mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-03 03:31:05 +06:00
Fix hub_retry
(#36449)
* cry * trigger --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
parent
6a876462c3
commit
482d17be60
@ -223,7 +223,7 @@ class ModelTesterMixin:
|
|||||||
if attr_name.startswith("test_"):
|
if attr_name.startswith("test_"):
|
||||||
attr = getattr(cls, attr_name)
|
attr = getattr(cls, attr_name)
|
||||||
if callable(attr):
|
if callable(attr):
|
||||||
setattr(cls, attr_name, hub_retry(attr))
|
setattr(cls, attr_name, hub_retry()(attr))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def all_generative_model_classes(self):
|
def all_generative_model_classes(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user