Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ class Net(nn.Module):
|
|
| 16 |
self.fc3 = nn.Linear(64, 10)
|
| 17 |
|
| 18 |
def forward(self, x):
|
| 19 |
-
x = x.view(-1, 28 * 28)
|
| 20 |
x = F.relu(self.fc1(x))
|
| 21 |
x = F.relu(self.fc2(x))
|
| 22 |
x = self.fc3(x)
|
|
|
|
| 16 |
self.fc3 = nn.Linear(64, 10)
|
| 17 |
|
| 18 |
def forward(self, x):
|
| 19 |
+
x = x.view(-1, 28 * 28) # Flatten the input
|
| 20 |
x = F.relu(self.fc1(x))
|
| 21 |
x = F.relu(self.fc2(x))
|
| 22 |
x = self.fc3(x)
|