mirror of
https://github.com/modelscope/modelscope.git
synced 2026-07-10 12:33:28 +02:00
ok Merge branch 'master' of github.com:modelscope/modelscope into release/1.38
This commit is contained in:
@@ -1014,5 +1014,7 @@ def unpatch_hub():
|
||||
@contextlib.contextmanager
|
||||
def patch_context():
|
||||
patch_hub()
|
||||
yield
|
||||
unpatch_hub()
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
unpatch_hub()
|
||||
|
||||
Reference in New Issue
Block a user