Spaces:
Build error
Build error
Update Main.py
Browse files
Main.py
CHANGED
|
@@ -122,7 +122,7 @@ class Main:
|
|
| 122 |
input_ids, input_mask = data['input_ids'].unsqueeze(0), data['attention_mask'].unsqueeze(0)
|
| 123 |
labels = torch.tensor([1] * input_ids.size(0), dtype=torch.long).unsqueeze(0)
|
| 124 |
with torch.no_grad():
|
| 125 |
-
outputs = model(
|
| 126 |
input_ids,
|
| 127 |
token_type_ids=None,
|
| 128 |
attention_mask=input_mask,
|
|
|
|
| 122 |
input_ids, input_mask = data['input_ids'].unsqueeze(0), data['attention_mask'].unsqueeze(0)
|
| 123 |
labels = torch.tensor([1] * input_ids.size(0), dtype=torch.long).unsqueeze(0)
|
| 124 |
with torch.no_grad():
|
| 125 |
+
outputs = self.model(
|
| 126 |
input_ids,
|
| 127 |
token_type_ids=None,
|
| 128 |
attention_mask=input_mask,
|