Hamda commited on
Commit
c59a4f8
1 Parent(s): e8b8e81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(model_name)
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):