Spaces:
Runtime error
Runtime error
Saliltrehan7
commited on
Commit
•
b68006c
1
Parent(s):
0a5340f
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
from transformers.pipelines import pipeline
|
7 |
from transformers.models.auto.modeling_auto import AutoModelForQuestionAnswering
|
|
|
1 |
+
import subprocess
|
2 |
+
import sys
|
3 |
+
|
4 |
+
def install(package):
|
5 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
|
6 |
+
|
7 |
+
install("transformers")
|
8 |
+
install("torch")
|
9 |
+
install("sentencepiece")
|
10 |
+
install("gradio")
|
11 |
|
12 |
from transformers.pipelines import pipeline
|
13 |
from transformers.models.auto.modeling_auto import AutoModelForQuestionAnswering
|