Spaces:
Build error
Build error
Create myfunct.py
Browse files- myfunct.py +10 -0
myfunct.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import pip
|
| 2 |
+
|
| 3 |
+
def install(package):
|
| 4 |
+
if hasattr(pip, 'main'):
|
| 5 |
+
pip.main(['install', package])
|
| 6 |
+
else:
|
| 7 |
+
pip._internal.main(['install', package])
|
| 8 |
+
|
| 9 |
+
install('git+https://github.com/huggingface/transformers.git')
|
| 10 |
+
install('datasets sentencepiece')
|