Spaces:
Sleeping
Sleeping
app updated
Browse files
app.py
CHANGED
@@ -5,7 +5,8 @@ import numpy as np
|
|
5 |
|
6 |
|
7 |
# Define the function for sentiment analysis
|
8 |
-
@st.cache_resource(
|
|
|
9 |
def get_model():
|
10 |
# Load the model and tokenizer
|
11 |
tokenizer = AutoTokenizer.from_pretrained("xlnet-base-cased")
|
|
|
5 |
|
6 |
|
7 |
# Define the function for sentiment analysis
|
8 |
+
# @st.cache_resource()
|
9 |
+
@st.cache(allow_output_mutation = True)
|
10 |
def get_model():
|
11 |
# Load the model and tokenizer
|
12 |
tokenizer = AutoTokenizer.from_pretrained("xlnet-base-cased")
|