EkhiAzur commited on
Commit
401411c
1 Parent(s): 667dbfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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
- classifier = pipeline("text-classification", model=model, max_length=512,
 
 
 
 
 
 
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):