Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("
|
| 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):
|