Spaces:
Runtime error
Runtime error
Commit ·
f56b4fd
1
Parent(s): af7ccdd
Update app.py
Browse files5 unmodified lines678910115 unmodified linesfrom PIL import Image# @st.cachedef predict_topic_by_title_and_abstract(text):tokenized_text = tokenizer(text, return_tensors='pt')5 unmodified lines678910111213145 unmodified linesfrom PIL import Imagewith open('labels.pickle', 'rb') as handle:labels = pickle.load(handle)# @st.cachedef predict_topic_by_title_and_abstract(text):tokenized_text = tokenizer(text, return_tensors='pt')
app.py+3