Spaces:
Sleeping
Sleeping
Hellisotherpeople
commited on
Commit
•
6875735
1
Parent(s):
7fd01f5
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import numpy as np
|
2 |
import pandas as pd
|
3 |
import shap
|
@@ -9,14 +20,7 @@ from transformers import (AutoModelForCausalLM, AutoModelForQuestionAnswering,
|
|
9 |
AutoModelForSeq2SeqLM,
|
10 |
AutoModelForSequenceClassification, AutoTokenizer,
|
11 |
pipeline)
|
12 |
-
import subprocess
|
13 |
-
import sys
|
14 |
-
|
15 |
-
package = "./shap-0.40.0-cp38-cp38-linux_x86_64.whl"
|
16 |
|
17 |
-
subprocess.check_call(
|
18 |
-
[sys.executable, "-m", "pip", "install", package]
|
19 |
-
)
|
20 |
|
21 |
st.set_page_config(page_title="HF-SHAP")
|
22 |
st.title("HF-SHAP: A front end for SHAP")
|
|
|
1 |
+
import subprocess
|
2 |
+
import sys
|
3 |
+
|
4 |
+
package = "./shap-0.40.0-cp38-cp38-linux_x86_64.whl"
|
5 |
+
|
6 |
+
subprocess.check_call(
|
7 |
+
[sys.executable, "-m", "pip", "install", package]
|
8 |
+
)
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
import numpy as np
|
13 |
import pandas as pd
|
14 |
import shap
|
|
|
20 |
AutoModelForSeq2SeqLM,
|
21 |
AutoModelForSequenceClassification, AutoTokenizer,
|
22 |
pipeline)
|
|
|
|
|
|
|
|
|
23 |
|
|
|
|
|
|
|
24 |
|
25 |
st.set_page_config(page_title="HF-SHAP")
|
26 |
st.title("HF-SHAP: A front end for SHAP")
|