Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ class MyPipeline(TokenClassificationPipeline):
|
|
20 |
|
21 |
|
22 |
length = len(model_inputs['input_ids'][0]) - 2
|
23 |
-
tokens = tokenizer.tokenize(sentence)
|
24 |
seek = 0
|
25 |
offset_mapping_list = [[(0, 0)]]
|
26 |
for i in range(length):
|
|
|
20 |
|
21 |
|
22 |
length = len(model_inputs['input_ids'][0]) - 2
|
23 |
+
tokens = self.tokenizer.tokenize(sentence)
|
24 |
seek = 0
|
25 |
offset_mapping_list = [[(0, 0)]]
|
26 |
for i in range(length):
|