Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
4 |
from transformers import AutoTokenizer, AutoModelForMaskedLM
|
5 |
|
6 |
tokenizer = AutoTokenizer.from_pretrained("moussaKam/AraBART", padding= True, truncation=True, max_length=128)
|
7 |
-
model = AutoModelForMaskedLM.from_pretrained(
|
8 |
|
9 |
|
10 |
def next_word(text, pipe):
|
|
|
4 |
from transformers import AutoTokenizer, AutoModelForMaskedLM
|
5 |
|
6 |
tokenizer = AutoTokenizer.from_pretrained("moussaKam/AraBART", padding= True, truncation=True, max_length=128)
|
7 |
+
model = AutoModelForMaskedLM.from_pretrained("moussaKam/AraBART")
|
8 |
|
9 |
|
10 |
def next_word(text, pipe):
|