Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ lang_id = {
|
|
125 |
"Chinese": "zh",
|
126 |
"Zulu": "zu",
|
127 |
}
|
128 |
-
def translation_text(source_lang, target_lang user_input):
|
129 |
src_lang = lang_id[source_lang]
|
130 |
trg_lang = lang_id[target_lang]
|
131 |
tokenizer.src_lang = src_lang
|
|
|
125 |
"Chinese": "zh",
|
126 |
"Zulu": "zu",
|
127 |
}
|
128 |
+
def translation_text(source_lang, target_lang, user_input):
|
129 |
src_lang = lang_id[source_lang]
|
130 |
trg_lang = lang_id[target_lang]
|
131 |
tokenizer.src_lang = src_lang
|