MrDdz commited on
Commit
9e99cfd
1 Parent(s): f9ab95a
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,8 +5,8 @@ import numpy as np
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")
 
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")