Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ from transformers.pipelines.token_classification import TokenClassificationPipel
|
|
6 |
import py_vncorenlp
|
7 |
|
8 |
os.system('pwd')
|
|
|
9 |
os.mkdir('/home/user/app/vncorenlp')
|
10 |
py_vncorenlp.download_model(save_dir='/home/user/app/vncorenlp')
|
11 |
rdrsegmenter = py_vncorenlp.VnCoreNLP(annotators=["wseg"], save_dir='/home/user/app/vncorenlp')
|
|
|
6 |
import py_vncorenlp
|
7 |
|
8 |
os.system('pwd')
|
9 |
+
os.system('sudo update-alternatives --config java')
|
10 |
os.mkdir('/home/user/app/vncorenlp')
|
11 |
py_vncorenlp.download_model(save_dir='/home/user/app/vncorenlp')
|
12 |
rdrsegmenter = py_vncorenlp.VnCoreNLP(annotators=["wseg"], save_dir='/home/user/app/vncorenlp')
|