Nakhwa commited on
Commit
a8cca58
·
verified ·
1 Parent(s): 48e9045

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +1 -0
test.py CHANGED
@@ -33,6 +33,7 @@ def predict_hoax(title, content):
33
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
34
  model.to(device)
35
 
 
36
  # LIME prediction function
37
  def predict_proba_for_lime(texts):
38
  results = []
 
33
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
34
  model.to(device)
35
 
36
+ @st.cache_resource
37
  # LIME prediction function
38
  def predict_proba_for_lime(texts):
39
  results = []