sohailq commited on
Commit
b39033e
1 Parent(s): ef31d2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from transformers import pipeline
5
 
6
 
7
  # Load the English to Urdu translation model from the transformers library
8
- model_name_or_path = "samiulhaq/iwslt-bt-en-ur"
9
  #model_name_or_path = TransformerModel.from_pretrained('samiulhaq/iwslt-bt-en-ur')
10
 
11
  translator = pipeline("translation", model=model_name_or_path, tokenizer=model_name_or_path)
 
5
 
6
 
7
  # Load the English to Urdu translation model from the transformers library
8
+ model_name_or_path = "Helsinki-NLP/opus-mt-en-ur"
9
  #model_name_or_path = TransformerModel.from_pretrained('samiulhaq/iwslt-bt-en-ur')
10
 
11
  translator = pipeline("translation", model=model_name_or_path, tokenizer=model_name_or_path)