Fix is_colab() (#9994)
@AyushExel @kalenmike Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
1 parent
a83d2a5013
commit
49156eb1d1
1 file changed
+1
-1
+1
-1
@@ -72,7 +72,7 @@ def is_chinese(s='人工智能'):
|
||||
|
||||
def is_colab():
|
||||
# Is environment a Google Colab instance?
|
||||
return 'COLAB_GPU' in os.environ
|
||||
return 'google.colab' in sys.modules
|
||||
|
||||
|
||||
def is_notebook():
|
||||
|
||||
Reference in new issue
Block a user