Fix `is_colab()` (#9994)
@AyushExel @kalenmike Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>pull/9999/head
parent
a83d2a5013
commit
49156eb1d1
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue