kambris commited on
Commit
3f35e3c
·
verified ·
1 Parent(s): 0e058c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = {translation_text}
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 = {translation_text}
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