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
Glenn Jocher 2022-11-01 12:02:05 +01:00 committed by GitHub
parent a83d2a5013
commit 49156eb1d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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():