Spaces:
Runtime error
Runtime error
ahmadaarif
commited on
Commit
β’
b543d66
1
Parent(s):
c78b858
Update app.py
Browse files
app.py
CHANGED
@@ -3,18 +3,6 @@
|
|
3 |
# The following cell connects Kaggle to the internet for successful running of the code
|
4 |
"""
|
5 |
|
6 |
-
# %%
|
7 |
-
#NB: Kaggle requires phone verification to use the internet or a GPU. If you haven't done that yet, the cell below will fail
|
8 |
-
# This code is only here to check that your internet is enabled. It doesn't do anything else.
|
9 |
-
# Here's a help thread on getting your phone number verified: https://www.kaggle.com/product-feedback/135367
|
10 |
-
|
11 |
-
import socket,warnings
|
12 |
-
try:
|
13 |
-
socket.setdefaulttimeout(1)
|
14 |
-
socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect(('1.1.1.1', 53))
|
15 |
-
except socket.error as ex: raise Exception("STOP: No internet. Click '>|' in top right and set 'Internet' switch to on")
|
16 |
-
|
17 |
-
# %%
|
18 |
"""
|
19 |
# Including all necessary packages and libraries
|
20 |
"""
|
|
|
3 |
# The following cell connects Kaggle to the internet for successful running of the code
|
4 |
"""
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
"""
|
7 |
# Including all necessary packages and libraries
|
8 |
"""
|