joelorellana commited on
Commit
03d5935
·
1 Parent(s): fb09f14

modyfing cache decorator

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
  st.title("Hugging Face Demo")
5
  text = st.text_input("Enter text to analyze: ")
6
 
7
- st.cache_resource
8
  def get_model():
9
  return pipeline("sentiment-analysis")
10
 
 
4
  st.title("Hugging Face Demo")
5
  text = st.text_input("Enter text to analyze: ")
6
 
7
+ @st.cache_resource
8
  def get_model():
9
  return pipeline("sentiment-analysis")
10