ok Merge branch 'master' of github.com:modelscope/modelscope into release/1.38

This commit is contained in:
班扬
2026-06-25 16:04:48 +08:00

View File

@@ -1014,5 +1014,7 @@ def unpatch_hub():
@contextlib.contextmanager
def patch_context():
patch_hub()
yield
unpatch_hub()
try:
yield
finally:
unpatch_hub()