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