Update app.py
Browse files
app.py
CHANGED
|
@@ -132,7 +132,7 @@ def google_translate_arabic(arabic_text):
|
|
| 132 |
translation_text = GoogleTranslator(source='ar', target='en').translate(clean_text)
|
| 133 |
|
| 134 |
# Format the result
|
| 135 |
-
result =
|
| 136 |
|
| 137 |
return result
|
| 138 |
|
|
@@ -186,7 +186,7 @@ def reverse_translate_english(english_text):
|
|
| 186 |
translation_text = GoogleTranslator(source='en', target='ar').translate(english_text)
|
| 187 |
|
| 188 |
# Format the result
|
| 189 |
-
result =
|
| 190 |
|
| 191 |
return result, translation_text
|
| 192 |
|
|
|
|
| 132 |
translation_text = GoogleTranslator(source='ar', target='en').translate(clean_text)
|
| 133 |
|
| 134 |
# Format the result
|
| 135 |
+
result = translation_text
|
| 136 |
|
| 137 |
return result
|
| 138 |
|
|
|
|
| 186 |
translation_text = GoogleTranslator(source='en', target='ar').translate(english_text)
|
| 187 |
|
| 188 |
# Format the result
|
| 189 |
+
result = translation_text
|
| 190 |
|
| 191 |
return result, translation_text
|
| 192 |
|