MrDdz commited on
Commit
f9ab95a
·
1 Parent(s): 468eff0

app updated

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,7 +5,8 @@ import numpy as np
5
 
6
 
7
  # Define the function for sentiment analysis
8
- @st.cache_resource(allow_output_mutation = True)
 
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")