IinjyI commited on
Commit
6826d47
·
verified ·
1 Parent(s): 9f2169b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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("/tfmodel")
 
 
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