Sheemz commited on
Commit
c105317
1 Parent(s): fb2cdf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
3
 
4
  # Load your model from the Hugging Face repository
5
  model_name = "SLPG/English_to_Urdu_Unsupervised_MT"
6
- translator = pipeline("translation", model=model_name)
7
 
8
  # Define the translation function
9
  def translate_text(input_text):
 
3
 
4
  # Load your model from the Hugging Face repository
5
  model_name = "SLPG/English_to_Urdu_Unsupervised_MT"
6
+ translator = pipeline("translation_en_to_ur", model=model_name)
7
 
8
  # Define the translation function
9
  def translate_text(input_text):