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