Spaces:
Sleeping
Sleeping
Update inference.py
Browse files- inference.py +2 -1
inference.py
CHANGED
|
@@ -5,7 +5,6 @@ from typing import List, Dict, Set
|
|
| 5 |
from pathlib import Path
|
| 6 |
from transformers import DistilBertTokenizer, DistilBertModel
|
| 7 |
|
| 8 |
-
|
| 9 |
class Nnet(nn.Module):
|
| 10 |
def __init__(self) -> None:
|
| 11 |
super().__init__()
|
|
@@ -78,4 +77,6 @@ class InferenceModel:
|
|
| 78 |
print(probs)
|
| 79 |
# map classes to lables
|
| 80 |
return self.get_lables(topp_calsses)
|
|
|
|
|
|
|
| 81 |
|
|
|
|
| 5 |
from pathlib import Path
|
| 6 |
from transformers import DistilBertTokenizer, DistilBertModel
|
| 7 |
|
|
|
|
| 8 |
class Nnet(nn.Module):
|
| 9 |
def __init__(self) -> None:
|
| 10 |
super().__init__()
|
|
|
|
| 77 |
print(probs)
|
| 78 |
# map classes to lables
|
| 79 |
return self.get_lables(topp_calsses)
|
| 80 |
+
|
| 81 |
+
# restart
|
| 82 |
|