Abdo1Kamr commited on
Commit
b9d0840
1 Parent(s): 049b6b5

Update app.py

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