Spaces:
Runtime error
Runtime error
greatbilal
commited on
Commit
•
30827ec
1
Parent(s):
f630f2d
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def get_aggregation_period(df):
|
|
57 |
return "30D"
|
58 |
|
59 |
|
60 |
-
@st.
|
61 |
def load_model():
|
62 |
pipe = pipeline(task="sentiment-analysis", model="bhadresh-savani/distilbert-base-uncased-emotion")
|
63 |
return pipe
|
|
|
57 |
return "30D"
|
58 |
|
59 |
|
60 |
+
@st.cache_data(allow_output_mutation=True)
|
61 |
def load_model():
|
62 |
pipe = pipeline(task="sentiment-analysis", model="bhadresh-savani/distilbert-base-uncased-emotion")
|
63 |
return pipe
|