Spaces:
Running
Running
Commit ·
b27db97
1
Parent(s): a4b435a
Update translate_app.py
Browse files- translate_app.py +1 -1
translate_app.py
CHANGED
|
@@ -12,7 +12,7 @@ def trad(message, l):
|
|
| 12 |
|
| 13 |
# Utilisation du module deep_translator
|
| 14 |
translation = MyMemoryTranslator(
|
| 15 |
-
source='fr-FR', target=l, email="o.r@exemple.com").translate(text=message.replace(" \n", "§§§"))
|
| 16 |
translation = translation.replace(
|
| 17 |
"§§§", " \n") # .replace(" ","<br>")
|
| 18 |
|
|
|
|
| 12 |
|
| 13 |
# Utilisation du module deep_translator
|
| 14 |
translation = MyMemoryTranslator(
|
| 15 |
+
source='fr-FR', target=l, email="o.r@exemple.com",).translate(text=message.replace(" \n", "§§§"))
|
| 16 |
translation = translation.replace(
|
| 17 |
"§§§", " \n") # .replace(" ","<br>")
|
| 18 |
|