Spaces:
Sleeping
Sleeping
kaitehtzeng
commited on
Commit
•
d961b40
1
Parent(s):
a4a2a0d
Update app.py
Browse files
app.py
CHANGED
@@ -41,9 +41,11 @@ import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
|
|
41 |
|
42 |
|
43 |
"""## Import Necessary Library"""
|
44 |
-
|
|
|
45 |
from transformers import AutoModel
|
46 |
from transformers import AutoTokenizer
|
|
|
47 |
from tokenizers import Tokenizer, trainers, pre_tokenizers, models
|
48 |
from transformers import DebertaTokenizer
|
49 |
from sklearn.model_selection import train_test_split
|
|
|
41 |
|
42 |
|
43 |
"""## Import Necessary Library"""
|
44 |
+
import subprocess
|
45 |
+
subprocess.run(['pip', 'install', 'transformer'])
|
46 |
from transformers import AutoModel
|
47 |
from transformers import AutoTokenizer
|
48 |
+
subprocess.run(['pip', 'install', 'tokenizers'])
|
49 |
from tokenizers import Tokenizer, trainers, pre_tokenizers, models
|
50 |
from transformers import DebertaTokenizer
|
51 |
from sklearn.model_selection import train_test_split
|