wjm55 commited on
Commit
c4a8604
·
1 Parent(s): 032494e

Fix tokenize_text function to correct token end index and remove unused 'supervision' package from requirements.txt

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +0 -1
app.py CHANGED
@@ -18,6 +18,6 @@ async def tokenize_text(request: TokenizeRequest):
18
  "start_char": token.idx,
19
  "end_char": token.idx + len(token.text),
20
  "start": token.i,
21
- "end": token.i + 1
22
  })
23
  return tokens
 
18
  "start_char": token.idx,
19
  "end_char": token.idx + len(token.text),
20
  "start": token.i,
21
+ "end": token.i
22
  })
23
  return tokens
requirements.txt CHANGED
@@ -1,5 +1,4 @@
1
  fastapi
2
  uvicorn[standard]
3
- supervision
4
  spacy
5
  pydantic
 
1
  fastapi
2
  uvicorn[standard]
 
3
  spacy
4
  pydantic