akhaliq HF staff commited on
Commit
8f2f72c
1 Parent(s): 01a9f56

Create utils.py

Browse files
Files changed (1) hide show
  1. utils.py +6 -0
utils.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ def is_google_colab():
2
+ try:
3
+ import google.colab
4
+ return True
5
+ except:
6
+ return False