Abdo1Kamr commited on
Commit
7d976bd
1 Parent(s): eddcff6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -49,14 +49,14 @@ def gradio_func(query, target, style):
49
  if len(query) > 1000:
50
  return "Please make your text shorter than above | الرجاء تصغير النص للترجمه"
51
 
 
 
 
52
  translated_text = MT(query, target)
53
 
54
  if style == "Translate | الترجمه":
55
  return translated_text
56
-
57
- elif style == "Change the text | تغيير النص":
58
- return random_punctuation(query)
59
-
60
  elif style == "Translate and change the text | الترجمه و تغير النص معاً":
61
  return random_punctuation(translated_text)
62
 
 
49
  if len(query) > 1000:
50
  return "Please make your text shorter than above | الرجاء تصغير النص للترجمه"
51
 
52
+ if style == "Change the text | تغيير النص":
53
+ return random_punctuation(query)
54
+
55
  translated_text = MT(query, target)
56
 
57
  if style == "Translate | الترجمه":
58
  return translated_text
59
+
 
 
 
60
  elif style == "Translate and change the text | الترجمه و تغير النص معاً":
61
  return random_punctuation(translated_text)
62