cnicu commited on
Commit
65114db
1 Parent(s): 8eb0f08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
- @st.cache_resource(show_spinner="Loading model...")
5
  def load_pipe():
6
  pipe = pipeline(task="text-classification", model="cnicu/tweet_emotions_classifier")
7
  return pipe
 
1
  import streamlit as st
2
  from transformers import pipeline
3
 
4
+ @st.experimental_singleton(show_spinner="Loading model...")
5
  def load_pipe():
6
  pipe = pipeline(task="text-classification", model="cnicu/tweet_emotions_classifier")
7
  return pipe