Spaces:
Runtime error
Runtime error
Commit ·
e62e803
1
Parent(s): 4a7efc0
Update app.py
Browse files17 unmodified lines1819202121222324256 unmodified lines32333434353637383917 unmodified linesimport pandas as pdimport plotly.offline as pyo
@st.cache_resource()#@st.cache_resource()@st.cache()def get_nl(): return nltk.download('punkt')get_nl()6 unmodified lines# os.remove("report.html")
@st.cache_resource()#@st.cache_resource()@st.cache(allow_output_mutation=True)def get_model(): tokenizer = AutoTokenizer.from_pretrained("ProsusAI/finbert") model = AutoModelForSequenceClassification.from_pretrained("ProsusAI/finbert")app.py+4-2