Spaces:
Runtime error
Runtime error
MasonCrinr
commited on
Commit
•
4085e20
1
Parent(s):
2567877
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,15 @@
|
|
1 |
-
import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
import random
|
|
|
1 |
+
import torch.nn as nn
|
2 |
+
import torch.nn.functional as F
|
3 |
+
|
4 |
+
class Model(nn.Module):
|
5 |
+
def __init__(self):
|
6 |
+
super().__init__()
|
7 |
+
self.conv1 = nn.Conv2d(1, 20, 5)
|
8 |
+
self.conv2 = nn.Conv2d(20, 20, 5)
|
9 |
+
|
10 |
+
def forward(self, x):
|
11 |
+
x = F.relu(self.conv1(x))
|
12 |
+
return F.relu(self.conv2(x))
|
13 |
import gradio as gr
|
14 |
import os
|
15 |
import random
|