Add application file1
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ user_input = st.text_area("Enter your text:")
|
|
| 12 |
|
| 13 |
|
| 14 |
# Define a function for sentiment analysis using transformers
|
| 15 |
-
@st.
|
| 16 |
def load_model():
|
| 17 |
return pipeline("sentiment-analysis")
|
| 18 |
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
# Define a function for sentiment analysis using transformers
|
| 15 |
+
@st.cache_data
|
| 16 |
def load_model():
|
| 17 |
return pipeline("sentiment-analysis")
|
| 18 |
|