Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ y = mnist.target.astype('int64')
|
|
12 |
X /= 255.0
|
13 |
|
14 |
|
15 |
-
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
16 |
XCnn = X.reshape(-1, 1, 28, 28)
|
17 |
XCnn_train, XCnn_test, y_train, y_test = train_test_split(XCnn, y, test_size=0.25, random_state=42)
|
18 |
|
|
|
12 |
X /= 255.0
|
13 |
|
14 |
|
15 |
+
#device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
16 |
XCnn = X.reshape(-1, 1, 28, 28)
|
17 |
XCnn_train, XCnn_test, y_train, y_test = train_test_split(XCnn, y, test_size=0.25, random_state=42)
|
18 |
|