Spaces:
Runtime error
Runtime error
Add prefix2 removal if translation English to Zomi
Browse files
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 |
|