AndreaSimeri
commited on
Commit
•
4b5a30d
1
Parent(s):
de724e2
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,6 @@ else:
|
|
13 |
device = torch.device("cpu")
|
14 |
|
15 |
dataset_path = './codice_civile_ITA_LIBRI_2_withArtRef_v2.csv'
|
16 |
-
input_model_path = './MODELLO_LOCALE_LIBRI_2_v5_2_subset60UniRRemphT4'
|
17 |
|
18 |
|
19 |
def load_CC_from_CSV(path):
|
@@ -34,8 +33,8 @@ def load_CC_from_CSV(path):
|
|
34 |
|
35 |
article_id, id_article, article_text, NUM_ART = load_CC_from_CSV(dataset_path)
|
36 |
|
37 |
-
model = BertForSequenceClassification.from_pretrained(
|
38 |
-
tokenizer = BertTokenizerFast.from_pretrained(
|
39 |
|
40 |
def LamBERTa_v5_placeholder(query):
|
41 |
n = 345
|
|
|
13 |
device = torch.device("cpu")
|
14 |
|
15 |
dataset_path = './codice_civile_ITA_LIBRI_2_withArtRef_v2.csv'
|
|
|
16 |
|
17 |
|
18 |
def load_CC_from_CSV(path):
|
|
|
33 |
|
34 |
article_id, id_article, article_text, NUM_ART = load_CC_from_CSV(dataset_path)
|
35 |
|
36 |
+
model = BertForSequenceClassification.from_pretrained("AndreaSimeri/LamBERTa_v5")
|
37 |
+
tokenizer = BertTokenizerFast.from_pretrained("AndreaSimeri/LamBERTa_v5")
|
38 |
|
39 |
def LamBERTa_v5_placeholder(query):
|
40 |
n = 345
|