Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,13 @@ access_token = "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"
|
|
6 |
|
7 |
model = AutoModel.from_pretrained("EkhiAzur/RoBERTA_3", token=access_token)
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
padding=True, truncation=True, batch_size=1)
|
11 |
|
12 |
def prozesatu(testua):
|
|
|
6 |
|
7 |
model = AutoModel.from_pretrained("EkhiAzur/RoBERTA_3", token=access_token)
|
8 |
|
9 |
+
tokenizer = AutoTokenizer.from_pretrained(
|
10 |
+
"ixa-ehu/roberta-eus-euscrawl-large-cased",
|
11 |
+
use_fast=use_fast_tokenizer,
|
12 |
+
add_prefix_space=True,
|
13 |
+
)
|
14 |
+
|
15 |
+
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer, max_length=512,
|
16 |
padding=True, truncation=True, batch_size=1)
|
17 |
|
18 |
def prozesatu(testua):
|