Spaces:
Sleeping
Sleeping
Hellisotherpeople
commited on
Commit
•
7fd01f5
1
Parent(s):
00840a1
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,14 @@ from transformers import (AutoModelForCausalLM, AutoModelForQuestionAnswering,
|
|
9 |
AutoModelForSeq2SeqLM,
|
10 |
AutoModelForSequenceClassification, AutoTokenizer,
|
11 |
pipeline)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
st.set_page_config(page_title="HF-SHAP")
|
14 |
st.title("HF-SHAP: A front end for SHAP")
|
|
|
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")
|