paragon-analytics commited on
Commit
9e1422b
1 Parent(s): f4295c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -34,6 +34,11 @@ custom_kw_extractor = yake.KeywordExtractor(lan="en", n=2, dedupLim=0.2, top=10,
34
  max_words = 2000
35
  max_len = 111
36
 
 
 
 
 
 
37
  # load the model from disk
38
  #filename = 'resil_lstm_model.sav'
39
  #lmodel = pickle.load(open(filename, 'rb'))
 
34
  max_words = 2000
35
  max_len = 111
36
 
37
+ from transformers_interpret import SequenceClassificationExplainer
38
+ cls_explainer = SequenceClassificationExplainer(
39
+ model,
40
+ tokenizer)
41
+
42
  # load the model from disk
43
  #filename = 'resil_lstm_model.sav'
44
  #lmodel = pickle.load(open(filename, 'rb'))