Spaces:
Runtime error
Runtime error
Commit ·
2ce0e18
1
Parent(s): fa574e6
Update app.py
Browse files8 unmodified lines91011121314158 unmodified lineswith open('labels.pickle', 'rb') as handle:labels = pickle.load(handle)# @st.cachedef predict_topic_by_title_and_abstract(text, model):tokens = tokenizer(text, return_tensors='pt', truncation=True)with torch.no_grad():8 unmodified lines91011121314158 unmodified lineswith open('labels.pickle', 'rb') as handle:labels = pickle.load(handle)@st.cachedef predict_topic_by_title_and_abstract(text, model):tokens = tokenizer(text, return_tensors='pt', truncation=True)with torch.no_grad():
app.py+1-1