Spaces:
Sleeping
Sleeping
Update app.py
#1
by
greatbilal
- opened
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
|