Spaces:
Runtime error
Runtime error
blah
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ encoding = tokenizer.encode(txt, return_tensors='pt')
|
|
43 |
result = model(encoding)
|
44 |
result
|
45 |
pad = (0, 1)
|
46 |
-
result = nn.functional.pad(result, pad, "constant", 0)
|
47 |
result
|
48 |
|
49 |
# transform logit to get probabilities
|
|
|
43 |
result = model(encoding)
|
44 |
result
|
45 |
pad = (0, 1)
|
46 |
+
result = nn.functional.pad(result.logits, pad, "constant", 0)
|
47 |
result
|
48 |
|
49 |
# transform logit to get probabilities
|