Juna190825 commited on
Commit
18893af
·
verified ·
1 Parent(s): 13e6865

Add prefix2 removal if translation English to Zomi

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def translate_zomi(text: str):
48
  output = output[len(prefix2):].strip()
49
  # Remove surrounding quotes
50
  if (output.startswith('"') and output.endswith('"')) or (output.startswith("'") and output.endswith("'")):
51
- output = output[1:-1].strip()
52
 
53
  return output
54
 
 
48
  output = output[len(prefix2):].strip()
49
  # Remove surrounding quotes
50
  if (output.startswith('"') and output.endswith('"')) or (output.startswith("'") and output.endswith("'")):
51
+ output = output[1:-1].strip()
52
 
53
  return output
54