Update app.py
Browse files
app.py
CHANGED
@@ -22,9 +22,10 @@ model_checkpoint = "marefa-nlp/marefa-mt-en-ar"
|
|
22 |
tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
|
23 |
#model = TFAutoModelForSeq2SeqLM.from_pretrained(model_checkpoint,from_pt=True)
|
24 |
with zipfile.ZipFile("tf_model.zip", 'r') as zip_ref:
|
25 |
-
zip_ref.extractall("/
|
|
|
|
|
26 |
|
27 |
-
model = TFAutoModelForSeq2SeqLM.from_pretrained("tf_model/")
|
28 |
|
29 |
|
30 |
# Load cleaned_word_embeddings
|
|
|
22 |
tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
|
23 |
#model = TFAutoModelForSeq2SeqLM.from_pretrained(model_checkpoint,from_pt=True)
|
24 |
with zipfile.ZipFile("tf_model.zip", 'r') as zip_ref:
|
25 |
+
zip_ref.extractall("./marian_model/")
|
26 |
+
|
27 |
+
model = TFAutoModelForSeq2SeqLM.from_pretrained("./marian_model/")
|
28 |
|
|
|
29 |
|
30 |
|
31 |
# Load cleaned_word_embeddings
|