Skip to content

Commit f11823c

Browse files
committed
1.0.7 update
1 parent abc1ac7 commit f11823c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def _appmetadata(self):
3939
pass
4040

4141
def _annotate(self, mmif: Union[str, dict, Mmif], **parameters) -> Mmif:
42-
if mmif.isinstance(Mmif):
42+
if type(mmif) == Mmif:
43+
4344
mmif_obj = mmif
4445
else:
4546
mmif_obj = Mmif(mmif)
@@ -71,7 +72,7 @@ def _annotate(self, mmif: Union[str, dict, Mmif], **parameters) -> Mmif:
7172
a = view.new_annotation(Uri.TOKEN)
7273
if n not in tok_idx:
7374
a.add_property("start", tok.idx)
74-
a.add_property("end", tok.idx + len(tok.idx))
75+
a.add_property("end", tok.idx + len(tok_idx))
7576
tok_idx[n] = a.id
7677
else:
7778
a.add_property('targets', [tok_idx[n]])

0 commit comments

Comments
 (0)