Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import transformers
|
|
4 |
|
5 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
6 |
|
7 |
-
class Model(
|
8 |
def __init__(self):
|
9 |
super(Model).__init__()
|
10 |
self.config = transformers.DistilBertConfig()
|
|
|
4 |
|
5 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
6 |
|
7 |
+
class Model(torch.nn.Module):
|
8 |
def __init__(self):
|
9 |
super(Model).__init__()
|
10 |
self.config = transformers.DistilBertConfig()
|