Dimasnoufal commited on
Commit
72b9d14
1 Parent(s): 1c001d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- pip install transformers-interpret
2
  from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
3
  from transformers_interpret import SequenceClassificationExplainer
4
  model = AutoModelForSequenceClassification.from_pretrained("indobertweet-fine-tuned")
@@ -11,7 +11,7 @@ def classify(text):
11
  yhat = result[0]['label']
12
  return result
13
 
14
- pip install gradio
15
 
16
  import gradio as gr
17
 
 
1
+ # pip install transformers-interpret
2
  from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
3
  from transformers_interpret import SequenceClassificationExplainer
4
  model = AutoModelForSequenceClassification.from_pretrained("indobertweet-fine-tuned")
 
11
  yhat = result[0]['label']
12
  return result
13
 
14
+ # pip install gradio
15
 
16
  import gradio as gr
17