Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
-
@st.
|
| 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
|