Spaces:
Runtime error
Runtime error
Commit
·
98a9b7a
1
Parent(s):
614e391
Upload Simple.ipynb
Browse files- Simple.ipynb +17 -6
Simple.ipynb
CHANGED
|
@@ -11,10 +11,10 @@
|
|
| 11 |
"import os\n",
|
| 12 |
"import subprocess\n",
|
| 13 |
"cek = subprocess.getoutput('nvidia-smi')\n",
|
| 14 |
-
"if not 'T4' in cek:\n",
|
| 15 |
-
"
|
| 16 |
-
"
|
| 17 |
-
"
|
| 18 |
"\n",
|
| 19 |
"\n",
|
| 20 |
"#thanks to https://github.com/camenduru for the fork\n",
|
|
@@ -92,10 +92,21 @@
|
|
| 92 |
}
|
| 93 |
],
|
| 94 |
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
"language_info": {
|
| 96 |
-
"name": "python"
|
|
|
|
| 97 |
},
|
| 98 |
-
"orig_nbformat": 4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
},
|
| 100 |
"nbformat": 4,
|
| 101 |
"nbformat_minor": 2
|
|
|
|
| 11 |
"import os\n",
|
| 12 |
"import subprocess\n",
|
| 13 |
"cek = subprocess.getoutput('nvidia-smi')\n",
|
| 14 |
+
"# if not 'T4' in cek:\n",
|
| 15 |
+
"# print(\"\u001b[1;32m-----Your colab session is over. Use other google account or wait 12-24 hours-----\")\n",
|
| 16 |
+
"# print(\"-----Sesi colab elu udah habis bro. Saran gw tunggu 12-24 jam atau bikin/pake akun google lain-----\")\n",
|
| 17 |
+
"# raise KeyboardInterrupt\n",
|
| 18 |
"\n",
|
| 19 |
"\n",
|
| 20 |
"#thanks to https://github.com/camenduru for the fork\n",
|
|
|
|
| 92 |
}
|
| 93 |
],
|
| 94 |
"metadata": {
|
| 95 |
+
"kernelspec": {
|
| 96 |
+
"display_name": "Python 3",
|
| 97 |
+
"language": "python",
|
| 98 |
+
"name": "python3"
|
| 99 |
+
},
|
| 100 |
"language_info": {
|
| 101 |
+
"name": "python",
|
| 102 |
+
"version": "3.10.10"
|
| 103 |
},
|
| 104 |
+
"orig_nbformat": 4,
|
| 105 |
+
"vscode": {
|
| 106 |
+
"interpreter": {
|
| 107 |
+
"hash": "7b1f2b33e866b0bf2409397e5f58ba9cdf170d3b7f64c8f359c79998e2f88ad4"
|
| 108 |
+
}
|
| 109 |
+
}
|
| 110 |
},
|
| 111 |
"nbformat": 4,
|
| 112 |
"nbformat_minor": 2
|