Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,6 @@ def concat_tokens_tags(sentences):
|
|
56 |
tokens['attention_mask'] = torch.stack(tokens['attention_mask'])
|
57 |
return tokens
|
58 |
|
59 |
-
"""preprocess tags"""
|
60 |
if tags:
|
61 |
tags = [x.lower().strip() for x in tags.split(",")]
|
62 |
tags_tokens = concat_tokens_tags(tags)
|
|
|
56 |
tokens['attention_mask'] = torch.stack(tokens['attention_mask'])
|
57 |
return tokens
|
58 |
|
|
|
59 |
if tags:
|
60 |
tags = [x.lower().strip() for x in tags.split(",")]
|
61 |
tags_tokens = concat_tokens_tags(tags)
|