Spaces:
Sleeping
Sleeping
alexandre-huynh
commited on
Update modeles.py
Browse files- modeles.py +1 -8
modeles.py
CHANGED
@@ -1,11 +1,4 @@
|
|
1 |
-
|
2 |
-
import sys
|
3 |
-
|
4 |
-
def install(package):
|
5 |
-
subprocess.check_call([sys.executable, "-m", "pip", "install", "--user", package])
|
6 |
-
|
7 |
-
install("transformers")
|
8 |
-
|
9 |
from transformers import pipeline
|
10 |
|
11 |
def bert(context, question):
|
|
|
1 |
+
# transformers obtenu via pip install automatique spécifié dans requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
def bert(context, question):
|