We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a150398 commit d2a7bc5Copy full SHA for d2a7bc5
patches/kaggle_module_resolver.py
@@ -7,7 +7,7 @@
7
url_pattern = re.compile(r"https?://([a-z]+\.)?kaggle.com/models/(?P<owner>[^\\/]+)/(?P<model>[^\\/]+)/frameworks/(?P<framework>[^\\/]+)/variations/(?P<variation>[^\\/]+)/versions/(?P<version>[0-9]+)$")
8
9
def _is_on_kaggle_notebook():
10
- return os.getenv("KAGGLE_KERNEL_RUN_TYPE") != None
+ return os.getenv("KAGGLE_KERNEL_RUN_TYPE") != None and os.getenv("KAGGLE_USER_SECRETS_TOKEN") != None
11
12
def _is_kaggle_handle(handle):
13
return url_pattern.match(handle) != None
0 commit comments