Yaron Koresh commited on
Commit
3ea7792
·
verified ·
1 Parent(s): 706151f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def translate(text,lang):
80
  if trgt_lang == lang:
81
  translated = trgt_text
82
  except:
83
- raise print(f'Warning: Could not translate "{text}" into {lang}!')
84
 
85
  ret = re.sub(f'[{string.punctuation}]', '', re.sub('[\s+]', ' ', translated)).lower().strip()
86
  print(ret)
 
80
  if trgt_lang == lang:
81
  translated = trgt_text
82
  except:
83
+ print(f'Warning: Could not translate "{text}" into {lang}!')
84
 
85
  ret = re.sub(f'[{string.punctuation}]', '', re.sub('[\s+]', ' ', translated)).lower().strip()
86
  print(ret)