Spaces:
No application file
No application file
File size: 311 Bytes
3883c60 |
1 2 3 4 5 6 7 8 9 10 11 12 |
from setup_tools.magicinstaller.requirement import SimpleRequirementInit
class NoColabRequirement(SimpleRequirementInit):
def install(self) -> tuple[int, str, str]:
try:
import google.colab
return 0, "", ""
except:
pass
return super().install()
|