yeshpanovrustem commited on
Commit
e7df576
1 Parent(s): 9bc1404

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,4 +1,6 @@
 
1
  import streamlit as st
 
2
  from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
3
 
4
  # use @st.cache decorator to cache model — because it is too large, we do not want to reload it every time
 
1
+ from nltk.tokenize import word_tokenize
2
  import streamlit as st
3
+ import torch
4
  from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
5
 
6
  # use @st.cache decorator to cache model — because it is too large, we do not want to reload it every time